From 00a7872d5c063dce7ee90e90cd889b74ba77c9c4 Mon Sep 17 00:00:00 2001 From: Luke Jones Date: Sun, 3 May 2020 19:21:36 +1000 Subject: [PATCH] Add typescript type definitions --- package.json | 1 + types.d.ts | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 types.d.ts diff --git a/package.json b/package.json index aa93ef13..72c04161 100644 --- a/package.json +++ b/package.json @@ -170,6 +170,7 @@ "updtr": "^3.1.0" }, "optionalDependencies": {}, + "typings": "./types.d.ts", "bugs": { "url": "https://github.com/FGRibreau/mailchecker/issues" } diff --git a/types.d.ts b/types.d.ts new file mode 100644 index 00000000..57a55ec7 --- /dev/null +++ b/types.d.ts @@ -0,0 +1,2 @@ +export function isValid(email: string): boolean +export function blacklist(): string[]