UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

6 lines (5 loc) 273 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> }