serde-fns
Version:
simple shapes and procedures for serde with a pit-of-success
11 lines (10 loc) • 356 B
TypeScript
export type Serializable = any;
/**
* data serialized as json
*/
export type SerialJSON = string & {
_json: undefined;
};
export declare const isSerialJSON: import("type-fns").AssessWithAssure<string, SerialJSON>;
export declare const asSerialJSON: (input: Serializable) => SerialJSON;
export declare const deSerialJSON: <T>(input: SerialJSON) => T;