diff --git a/package.json b/package.json index a19c3ac..3e834b1 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "test": "grunt" }, + "typings": "types.d.ts", "keywords": ["nodemailer", "sendgrid"], "author": "Andris Reinman", "license": "MIT", diff --git a/types.d.ts b/types.d.ts new file mode 100644 index 0000000..82e0e9a --- /dev/null +++ b/types.d.ts @@ -0,0 +1,7 @@ +export interface SendgridOptions { + apiKey: string +} + +export default function sendgrid( + options: SendgridOptions +): import('nodemailer').Transport