Skip to content

Commit

Permalink
fix: loosen JsonObject definition to include undefined
Browse files Browse the repository at this point in the history
A temporary workaround sindresorhus/serialize-error#52
  • Loading branch information
gajus committed Nov 12, 2021
1 parent d56e023 commit e541931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Expand Up @@ -2,7 +2,7 @@ import type {
AsyncLocalStorage,
} from 'async_hooks';

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

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

Expand Down

0 comments on commit e541931

Please sign in to comment.