mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
224 B
TypeScript
10 lines
224 B
TypeScript
import isEmail = require('sane-email-validation');
|
|
|
|
const is: boolean = isEmail('foo@bar.com');
|
|
const isNot: boolean = isEmail.isNotEmail('foo@bar.com');
|
|
|
|
// $ExpectError
|
|
isEmail(10);
|
|
// $ExpectError
|
|
isEmail.isNotEmail(10);
|