locutus
Version:
Locutus other languages' standard libraries to JavaScript for fun and educational purposes
10 lines (9 loc) • 434 B
TypeScript
type UnserializedScalar = string | number | boolean | null;
type UnserializedObject = {
[key: string]: UnserializedValue;
};
type UnserializedValue = UnserializedScalar | UnserializedObject | UnserializedValue[];
type ErrorMode = 'throw' | 'log' | 'silent';
type UnserializeInput = string | null | undefined;
export declare function unserialize(str: UnserializeInput, errorMode?: ErrorMode): UnserializedValue | false;
export {};