UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

5 lines 272 B
import type { Validator } from './base'; export declare interface ObjectValidatorType<T extends Record<string, any>> extends Validator<T> { shape: (schema: Record<string, Validator<any>>) => ObjectValidatorType<T> strict: (strict?: boolean) => ObjectValidatorType<T> }