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

x/valibot/src/methods/brand/index.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/src/methods/brand/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.