Files
klz-cables.com/.pnpm-store/v10/files/74/41dc07f372fc231f5c2e01fbd45d184d47b1863c7158ade6f00ccc2393d0d94a04011a979ad590fd337a08d2568906da9080cf999bd54a707edc81b694f00f
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

28 lines
1.0 KiB
Plaintext

import type { SendMailOptions as NodemailerSendMailOptions } from 'nodemailer';
import type { Payload } from '../types/index.js';
type Prettify<T> = {
[K in keyof T]: T[K];
} & NonNullable<unknown>;
/**
* Options for sending an email. Allows access to the PayloadRequest object
*/
export type SendEmailOptions = Prettify<NodemailerSendMailOptions>;
/**
* Email adapter after it has been initialized. This is used internally by Payload.
*/
export type InitializedEmailAdapter<TSendEmailResponse = unknown> = ReturnType<EmailAdapter<TSendEmailResponse>>;
/**
* Email adapter interface. Allows a generic type for the response of the sendEmail method.
*
* This is the interface to use if you are creating a new email adapter.
*/
export type EmailAdapter<TSendEmailResponse = unknown> = ({ payload }: {
payload: Payload;
}) => {
defaultFromAddress: string;
defaultFromName: string;
name: string;
sendEmail: (message: SendEmailOptions) => Promise<TSendEmailResponse>;
};
export {};
//# sourceMappingURL=types.d.ts.map