serde-fns
Version:
simple shapes and procedures for serde with a pit-of-success
10 lines (9 loc) • 338 B
TypeScript
/**
* data serialized as base64
*/
export type SerialBase64 = string & {
_base64: undefined;
};
export declare const isSerialBase64: import("type-fns").AssessWithAssure<string, SerialBase64>;
export declare const asSerialBase64: (input: string) => SerialBase64;
export declare const deSerialBase64: (input: SerialBase64) => string;