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

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

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

[Json] Creates a TemplateLiteral type from template dsl string

Type Parameters

T extends string

Parameters

templateDsl: T
optional
options: SchemaOptions

[Json] Creates a TemplateLiteral type

Parameters

kinds: [...T]
optional
options: SchemaOptions