From 2175d2444af7a5f6c4bdfbffbabde0370ce483b6 Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Thu, 20 Jun 2024 12:27:04 +0200 Subject: [PATCH] Fix type for parse() Closes #44 --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index cf7dd3e..0e90aa7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -70,7 +70,7 @@ export type Reviver = (k: number | string, v: unknown) => unknown */ export function parse( json: string, - reviver?: Reviver, + reviver?: Reviver | null, removesComments?: boolean ): CommentJSONValue