Installation
npm install --save @types/remotedev-serialize
Summary
This package contains type definitions for remotedev-serialize (https://github.com/zalmoxisus/remotedev-serialize/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/remotedev-serialize.
index.d.ts
// TypeScript Version: 2.1
import * as Immutable from "immutable";
export type Options = Record<string, boolean>;
export type Refs = Record<string, any>;
export type DefaultReplacer = (key: string, value: any) => any;
export type Replacer = (
key: string,
value: any,
replacer: DefaultReplacer,
) => any;
export type DefaultReviver = (key: string, value: any) => any;
export type Reviver = (key: string, value: any, reviver: DefaultReviver) => any;
export function immutable(
immutable: typeof Immutable,
refs?: Refs,
customReplacer?: Replacer,
customReviver?: Reviver,
): {
stringify: (input: any) => string;
parse: (input: string) => any;
serialize: (
immutable: typeof Immutable,
refs?: Refs,
customReplacer?: Replacer,
customReviver?: Reviver,
) => {
replacer: Replacer;
reviver: Reviver;
options: Options;
};
};
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: immutable
Credits
These definitions were written by Julian Hundeloh.