1
0
Fork 0
mirror of https://github.com/dawidd6/action-ansible-playbook.git synced 2024-11-23 09:17:19 +00:00
action-ansible-playbook/node_modules/yaml/dist/doc/applyReviver.d.ts

10 lines
445 B
TypeScript
Raw Permalink Normal View History

2024-01-17 09:08:10 +00:00
export type Reviver = (key: unknown, value: unknown) => unknown;
2022-10-21 14:44:44 +00:00
/**
* 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;