any
@tsed/schema
Usage
typescript
import { any } from "@tsed/schema";
Overview
ts
function any(): JsonSchema<any>;
export function any<S extends Array<JsonSchema<any>>>(...types: S): JsonSchema<{
[K in keyof S]: Infer<S[K]>;
}>;
Description
Declare a model with any type (By default: integer
, number
, string
, boolean
, array
, object
, null
)
See JsonSchema to discover available methods.
[K in keyof S]
ts
[K in keyof S]: Infer<S[K]>;