@types/jsan
TypeScript icon, indicating that this package has built-in type declarations

3.1.5 • Public • Published

Installation

npm install --save @types/jsan

Summary

This package contains type definitions for jsan (https://github.com/kolodny/jsan).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsan.

index.d.ts

export interface Options {
    date?: boolean;
    function?: boolean;
    regex?: boolean;
    undefined?: boolean;
    error?: boolean;
    symbol?: boolean;
    map?: boolean;
    set?: boolean;
    nan?: boolean;
    infinity?: boolean;
    refs?: boolean;
    circular?: unknown;
}

export function stringify(
    value: unknown,
    replacer?: (key: string, value: unknown) => unknown | Array<number | string> | null,
    space?: string | number,
    _options?: Options | boolean,
): string;

export function parse(
    text: string,
    reviver?: (key: string, value: unknown) => unknown,
): unknown;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Nathan Bierema.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jsan

Weekly Downloads

5,492

Version

3.1.5

License

MIT

Unpacked Size

3.72 kB

Total Files

5

Last publish

Collaborators

  • types