EmailSurface
Extract email templates from a project's templates.
import type { EmailSurface } from '@usepapier/client/base';Declaration #
export type EmailSurface<TTemplates extends Record<string, {
type: string;
}>, TPayloadMap extends Record<string, any>> = {
[K in keyof TTemplates as TTemplates[K] extends {
type: "email";
} ? KebabToCamelCase<K & string> : never]: EmailTemplateMethods<K extends keyof TPayloadMap ? TPayloadMap[K] : any>;
};Source: packages/client/src/core/surfaces.ts:133
Generated from TypeScript source.
d65ea8f71fbf