5.0.6 • Published 2 years ago
@types/keystonejs__email v5.0.6
Installation
npm install --save @types/keystonejs__email
Summary
This package contains type definitions for @keystonejs/email (https://github.com/keystonejs/keystone).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/keystonejs__email.
index.d.ts
// Type definitions for @keystonejs/email 5.0
// Project: https://github.com/keystonejs/keystone
// Definitions by: Kevin Brown <https://github.com/thekevinbrown>
// Timothee Clain <https://github.com/tclain>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.5
// Because this is a scoped package, without this line Typescript doesn't associate the
// types with the right package.
// tslint:disable-next-line:no-single-declare-module
declare module '@keystonejs/email' {
type Sender = (
fileName: string
) => {
send: (rendererOpts: any, transportOptions: any) => any;
};
interface MailSenderBuilder {
mjml: (opts?: { root?: string | undefined; transport?: string | undefined }) => Sender;
jsx: (opts?: { root?: string | undefined; transport?: string | undefined }) => Sender;
pug: (opts?: { root?: string | undefined; transport?: string | undefined }) => Sender;
}
const emailSender: MailSenderBuilder;
}
Additional Details
- Last updated: Thu, 08 Jul 2021 16:23:13 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Kevin Brown, and Timothee Clain.