UNPKG

serde-fns

Version:

simple shapes and procedures for serde with a pit-of-success

16 lines (15 loc) 553 B
/** * data serialized as a uri component * * usecase * - safe to use in a uri * * ref * - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent */ export type SerialUriComponent = string & { _base64: undefined; }; export declare const isSerialUriComponent: import("type-fns").AssessWithAssure<string, SerialUriComponent>; export declare const asSerialUriComponent: (input: string) => SerialUriComponent; export declare const deSerialUriComponent: (input: SerialUriComponent | string) => string;