Skip to content

Commit f6c2f86

Browse files
committed
fix: fix Options type. now don't need to specify all options
1 parent cebeab6 commit f6c2f86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import fs from "graceful-fs";
66

77
type MaybePromise<T> = T | Promise<T>;
88

9-
interface Options {
9+
type Options = PartialDeep<{
1010
/** @default utf-8 */
1111
encoding: BufferEncoding;
1212
/**
@@ -31,7 +31,7 @@ interface Options {
3131
* @default "preserve"
3232
* */
3333
tabSize: null | number | "preserve" | "hard";
34-
}
34+
}>
3535

3636
type GettersDeep<T extends object> = {
3737
[K in keyof T]: (oldValue: T[K], json: T) => T[K]

0 commit comments

Comments
 (0)