Skip to content

Commit e541931

Browse files
committed
fix: loosen JsonObject definition to include undefined
A temporary workaround sindresorhus/serialize-error#52
1 parent d56e023 commit e541931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type {
22
AsyncLocalStorage,
33
} from 'async_hooks';
44

5-
export type JsonObject = { [key: string]: JsonValue, };
5+
export type JsonObject = { [Key in string]?: JsonValue };
66

77
export type JsonValue = JsonObject | JsonValue[] | boolean | number | string | null;
88

0 commit comments

Comments
 (0)