1.0.5 • Published 6 months ago

@types/secure-json-parse v1.0.5

Weekly downloads
2,748
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/secure-json-parse

Summary

This package contains type definitions for secure-json-parse (https://github.com/fastify/secure-json-parse#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/secure-json-parse.

index.d.ts

// Type definitions for secure-json-parse 1.0
// Project: https://github.com/fastify/secure-json-parse#readme
// Definitions by: Sjoerd Diepen <https://github.com/OSjoerdWie>
//                 Mike MacCana <https://github.com/mikemaccana>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

export type Reviver = (this: any, key: string, value: any) => any;

export interface ParseOptions {
    protoAction?: "error" | "remove" | "ignore" | undefined;
    constructorAction?: "error" | "remove" | undefined;
}

export function parse(input: string, reviver?: Reviver, options?: ParseOptions): any;
export function safeParse(input: string, reviver?: Reviver): any;
export function scan(input: any, options?: ParseOptions): void;

Additional Details

  • Last updated: Tue, 06 Jul 2021 16:34:26 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Sjoerd Diepen, and Mike MacCana.

1.0.5

6 months ago

1.0.4

7 months ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

5 years ago