@jeroenhuinink/tsmapper
Version:
JSON to Typescript object mapper
20 lines (19 loc) • 665 B
TypeScript
import { MapFunctions, ExplicitMapper, ImplicitMapper } from './types';
/**
* The options that can be passed when creating a mapper.
*/
declare type MapperOptions = {
/**
* Partial set of functions to override the default value mapping.
*/
map?: Partial<MapFunctions>;
};
/**
*
* @param name Specify a name for your mapper. This name will be used in error messages.
* @param options Mapper options
* @returns
*/
export declare function createMapper(name?: string, options?: MapperOptions): ImplicitMapper<{}>;
export declare function createExplicitMapper<T extends {}>(name?: string, options?: MapperOptions): ExplicitMapper<T>;
export {};