rename some functions, change name to username ( username table), fix exports, add validations folder
All checks were successful
Code quality checks / biome (push) Successful in 9s
All checks were successful
Code quality checks / biome (push) Successful in 9s
This commit is contained in:
parent
61db491848
commit
f93cef442a
15 changed files with 280 additions and 72 deletions
10
types/validation.d.ts
vendored
Normal file
10
types/validation.d.ts
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
type genericValidation = {
|
||||
length: { min: number; max: number };
|
||||
regex: RegExp;
|
||||
};
|
||||
|
||||
type validationResult = {
|
||||
valid: boolean;
|
||||
error?: string;
|
||||
username?: string;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue