WIP: Add user interface
This commit is contained in:
parent
ffec932cb7
commit
f9aa38ee49
1 changed files with 4 additions and 0 deletions
|
@ -18,3 +18,7 @@ export function validatePassword(password: string): boolean {
|
||||||
export function isValidBirthday(birthday: string): boolean {
|
export function isValidBirthday(birthday: string): boolean {
|
||||||
return typeof birthday == 'string' && /^([0-9]{4})\-([0-9]{2})-([0-9]{2})$/.test(birthday);
|
return typeof birthday == 'string' && /^([0-9]{4})\-([0-9]{2})-([0-9]{2})$/.test(birthday);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface IUser {
|
||||||
|
name: string;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue