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

x/valibot/src/methods/index.ts>brand

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function brand
import { brand } from "https://deno.land/x/valibot@v0.24.0/src/methods/index.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

The branded schema.