@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
22 lines (21 loc) • 657 B
TypeScript
import { SpecTypes } from "../domain/SpecTypes.js";
/**
* @ignore
*/
export interface JsonSchemaMapper {
(...args: any[]): any;
}
/**
* @ignore
*/
export declare function registerJsonSchemaMapper(type: string, mapper: JsonSchemaMapper, spec?: SpecTypes): Map<string, JsonSchemaMapper>;
/**
* @ignore
*/
export declare function getJsonSchemaMapper(type: string, options: any): JsonSchemaMapper;
/**
* @ignore
*/
export declare function execMapper(type: string, args: any[], options: any, parent?: any): any;
export declare function hasMapper(type: string): boolean;
export declare function execOneOfMapper(types: string[], options: any): string;