Skip to content

Commit b7ef311

Browse files
committed
Expose writeToDisk method
1 parent 09013a9 commit b7ef311

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,12 +626,12 @@ export default class Conf<T extends Record<string, any> = Record<string, unknown
626626
if (this.#writeTimer) {
627627
this.#writePending = true;
628628
} else {
629-
this._writeToDisk();
629+
this.writeToDisk();
630630
this._startWriteTimeout();
631631
}
632632
}
633633

634-
private _writeToDisk(): void {
634+
writeToDisk(): void {
635635
this._cancelWriteTimeout();
636636

637637
// Validation already done in _write(), no need to validate again here
@@ -669,7 +669,7 @@ export default class Conf<T extends Record<string, any> = Record<string, unknown
669669

670670
if (this.#writePending) {
671671
this.#writePending = false;
672-
this._writeToDisk();
672+
this.writeToDisk();
673673
}
674674
}, this.#options.writeTimeout);
675675
}

0 commit comments

Comments
 (0)