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

x/typebox/src/typebox.ts>ExtendedTypeBuilder#RegEx

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

[Extended] Creates a regular expression type

Parameters

regex: RegExp
optional
options: SchemaOptions = [UNSUPPORTED]