Skip to main content
Module

x/valibot/mod.ts>brand

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
function brand
import { brand } from "https://deno.land/x/valibot@v0.28.1/mod.ts";

Brands the output type of a schema.

Type Parameters

TSchema extends BaseSchema | BaseSchemaAsync
TName extends BrandName

Parameters

schema: TSchema

The scheme to be branded.

name: TName

The brand name.

Returns

SchemaWithBrand<TSchema, TName>

The branded schema.