UNPKG

serialize-as-code

Version:

Serialize any Javascript object as its source code

14 lines (13 loc) 429 B
/** * This file is part of serialize-as-code which is released under MIT license. * * The LICENSE file can be found in the root directory of this project. * */ declare type optString = string | undefined | void; export declare type CustomSerializer = (arg: any) => optString; export declare const Serializer: { run: (o: unknown) => string; create: (custom: CustomSerializer) => (o: unknown) => string; }; export {};