UNPKG

@safejs/serializer

Version:

Serializer is a superset of JSON that includes recursive objects, dates, regular expressions, functions and others which you also can expand by yourself

15 lines (14 loc) 559 B
import { UnifiedExtraSerializer } from "../types/extra-serializer"; import { BuiltIn } from "./built-in"; declare type PartialPreset = Partial<{ [N in BuiltIn]: UnifiedExtraSerializer; }>; export declare const functionPreset: PartialPreset; export declare const constantsPreset: PartialPreset; export declare const es5Preset: PartialPreset; export declare const es2015Preset: PartialPreset; export declare type Preset = "none" | "constants" | "es5" | "es2015"; export declare const presets: { [P in Preset]: PartialPreset; }; export {};