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

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

Json Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
method JsonTypeBuilder.prototype.Ref
import { JsonTypeBuilder } from "https://deno.land/x/typebox@0.31.20/src/typebox.ts";

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

Parameters

schema: T
optional
options: SchemaOptions

[Json] Creates a Ref type.

Parameters

$ref: string
optional
options: SchemaOptions