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