UNPKG

@sinclair/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

6 lines (5 loc) 227 B
import { CreateType } from '../create/type.mjs'; /** `[JavaScript]` Extracts the InstanceType from the given Constructor type */ export function InstanceType(schema, options) { return CreateType(schema.returns, options); }