Skip to main content
Module

x/valita/mod.ts>record

A typesafe validation & parsing library for TypeScript.
Go to Latest
function record
import { record } from "https://deno.land/x/valita@v0.3.3/mod.ts";

Create a validator for a record type Record<string, T>, where T is the output type of the given subvalidator.

Parameters

optional
valueType: T

Returns

Type<Record<string, Infer<T>>>