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

1.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/remotedev-serialize

Weekly Downloads

1,260

Version

1.0.4

License

MIT

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • types