UNPKG

@sinclair/typebox

Version:

Json Schema Type Builder with Static Type Resolution for TypeScript

7 lines (6 loc) 265 B
import { CreateType } from '../create/type.mjs'; import { Kind } from '../symbols/index.mjs'; /** `[Json]` Creates a Ref type. The referenced type must contain a $id */ export function Ref($ref, options) { return CreateType({ [Kind]: 'Ref', $ref }, options); }