metamorphosi
Version:
Transform jsons using templates
15 lines (14 loc) • 468 B
TypeScript
export declare function getTransformer(template: any, options?: {
dropValues?: any[];
cb?: () => any;
}): ($: any, $1: any) => Partial<any>;
export declare function getTransform<T>(template: T, options?: {
dropValues?: any[];
cb?: () => any;
}): ($: any, $1: any) => Partial<T>;
export declare function transform<T>(template: T, { dropValues, $1, $, cb }: {
dropValues?: any[];
$1?: any;
$: any;
cb?: (key: any) => any;
}): Partial<T>;