Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/typebox/src/typebox.ts>StandardTypeBuilder#Ref

JSON Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
method StandardTypeBuilder.prototype.Ref
import { StandardTypeBuilder } from "https://deno.land/x/typebox@0.26.0-dev.1/src/typebox.ts";

[Standard] Creates a Ref type. The referenced type must contain a $id

Parameters

schema: T
optional
options: SchemaOptions = [UNSUPPORTED]