Skip to content

Commit 2175d24

Browse files
authored
Fix type for parse()
Closes #44
1 parent 4416b4d commit 2175d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export type Reviver = (k: number | string, v: unknown) => unknown
7070
*/
7171
export function parse(
7272
json: string,
73-
reviver?: Reviver,
73+
reviver?: Reviver | null,
7474
removesComments?: boolean
7575
): CommentJSONValue
7676

0 commit comments

Comments
 (0)