UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

6 lines (5 loc) 239 B
import type { Validator } from './base'; export declare interface EnumValidatorType extends Validator<string> { getAllowedValues: () => readonly string[] custom: (fn: (value: string) => boolean, message: string) => EnumValidatorType }