@stacksjs/ts-validation
Version:
A simple TypeScript starter kit using Bun.
16 lines • 574 B
TypeScript
import { BaseValidator } from './base';
import type { PasswordValidatorType, ValidationNames } from '../types';
export declare function password(): PasswordValidator;
export declare class PasswordValidator extends BaseValidator<string> implements PasswordValidatorType {
name: ValidationNames;
constructor();
matches(confirmPassword: string): this;
min(length?: number): this;
max(length?: number): this;
length(length: number): this;
hasUppercase(): this;
hasLowercase(): this;
hasNumbers(): this;
hasSpecialCharacters(): this;
alphanumeric(): this;
}