from
@tsed/schema
Usage
typescript
import { from } from "@tsed/schema";
Overview
ts
function from<TC extends Type<any> = Type<any>>(): JsonSchema<CtorToType<ObjectConstructor>>;
export function from<TC extends Type<any> = Type<any>>(type?: TC): JsonSchema<CtorToType<TC>>;
Description
Create a new model from the given type.
typescript
from(String)
See JsonSchema to discover available methods.