UNPKG

@tsed/schema

Version:
10 lines (9 loc) 499 B
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; };