Skip to content

Commit 02de76e

Browse files
authored
Merge pull request #45 from karlhorky/patch-1
Fix type for `parse()`
2 parents 4416b4d + 2175d24 commit 02de76e

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)