This commit is contained in:
commit
421043c9b5
67 changed files with 3455 additions and 0 deletions
1
types/lib/index.ts
Normal file
1
types/lib/index.ts
Normal file
|
@ -0,0 +1 @@
|
|||
export * from "./validation";
|
13
types/lib/validation.ts
Normal file
13
types/lib/validation.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
type genericValidation = {
|
||||
length: { min: number; max: number };
|
||||
regex: RegExp;
|
||||
};
|
||||
|
||||
type validationResult = {
|
||||
valid: boolean;
|
||||
error?: string;
|
||||
username?: string;
|
||||
name?: string;
|
||||
};
|
||||
|
||||
export type { genericValidation, validationResult };
|
Loading…
Add table
Add a link
Reference in a new issue