UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

18 lines (17 loc) 642 B
import type { LengthValidator, Validator } from './base'; export declare interface PasswordAnalysis { length: number uniqueChars: number uppercaseCount: number lowercaseCount: number numberCount: number symbolCount: number } export declare interface PasswordValidatorType extends Validator<string>, LengthValidator<PasswordValidatorType> { matches: (confirmPassword: string) => PasswordValidatorType hasUppercase: () => PasswordValidatorType hasLowercase: () => PasswordValidatorType hasNumbers: () => PasswordValidatorType hasSpecialCharacters: () => PasswordValidatorType alphanumeric: () => PasswordValidatorType }