@tsed/schema
Version:
JsonSchema module for Ts.ED Framework
10 lines (9 loc) • 499 B
TypeScript
import { Type } from "@tsed/core";
import { JsonSchema } from "../domain/JsonSchema.js";
import { JsonSchemaOptions } from "../interfaces/JsonSchemaOptions.js";
export type GenericValue = Type<any> | JsonSchema | String | Number | Boolean | Object | Date;
export type GenericsMap = Record<string, [GenericValue] | [GenericValue, GenericsMap]>;
export declare function getGenericsOptions(value: JsonSchema, options: JsonSchemaOptions): {
generics: GenericsMap | undefined;
mapper: string;
};