Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- validateUniqueEmailPromise( email : string ) {
- return new Promise(resolve => {
- setTimeout(() => {
- if( email === "alreadyExistsEmail@gmail.com" ) {
- resolve({
- asyncInvalid: true
- })
- } else {
- resolve(null);
- }
- }, 2000);
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement