backend/types/lib/validation.ts
creations 421043c9b5
Some checks failed
Code quality checks / biome (push) Failing after 11s
first commit
2025-06-10 13:42:39 -04:00

13 lines
239 B
TypeScript

type genericValidation = {
length: { min: number; max: number };
regex: RegExp;
};
type validationResult = {
valid: boolean;
error?: string;
username?: string;
name?: string;
};
export type { genericValidation, validationResult };