Render the notification content as a string.
render: (args: {
data?: TPayload;
}) => Promise<string>;Parameters
args{ data?: TPayload }
packages/client/src/core/surfaces.ts:120
Notification surface methods for a specific template.
import type { NotificationTemplateMethods } from '@usepapier/client/base';export interface NotificationTemplateMethods<TPayload = any> {
render: (args: {
data?: TPayload;
}) => Promise<string>;
}Source: packages/client/src/core/surfaces.ts:116
Render the notification content as a string.
render: (args: {
data?: TPayload;
}) => Promise<string>;args{ data?: TPayload }packages/client/src/core/surfaces.ts:120
d65ea8f71fbf