This commit is contained in:
kankys committed 2026-05-15 08:32:45 +02:00
1 parent fc2547bd59
commit 231006e61d
2143 files changed

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
export type Reviver = (key: unknown, value: unknown) => unknown;
/**
* Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec,
* in section 24.5.1.1 "Runtime Semantics: InternalizeJSONProperty" of the
* 2021 edition: https://tc39.es/ecma262/#sec-json.parse
*
* Includes extensions for handling Map and Set objects.
*/
export declare function applyReviver(reviver: Reviver, obj: unknown, key: unknown, val: any): unknown;