npm.io
1.0.4 • Published 2 years ago

@types/remotedev-serialize

Licence
MIT
Version
1.0.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 1536 GMT
  • Dependencies: immutable

Credits

These definitions were written by Julian Hundeloh.