Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/typebox/src/typebox.ts>TypeBuilder#Record

JSON Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
method TypeBuilder.prototype.Record
import { TypeBuilder } from "https://deno.land/x/typebox@0.25.12/src/typebox.ts";

Standard Creates an object whose properties are derived from the given string literal union.

Type Parameters

K extends TUnion<TLiteral[]>
T extends TSchema

Parameters

key: K
schema: T
optional
options: ObjectOptions

Standard Creates a record type

Parameters

key: K
schema: T
optional
options: ObjectOptions