InterfaceSDK v0.2.1

NotificationTemplateMethods

Notification surface methods for a specific template.

import type { NotificationTemplateMethods } from '@usepapier/client/base';

Declaration #

surfaces.tsTypeScript
export interface NotificationTemplateMethods<TPayload = any> {
    render: (args: {
        data?: TPayload;
    }) => Promise<string>;
}

Source: packages/client/src/core/surfaces.ts:116

Members 1

Render the notification content as a string.

render: (args: {
    data?: TPayload;
}) => Promise<string>;

Parameters

args
{ data?: TPayload }

packages/client/src/core/surfaces.ts:120

Generated from TypeScript source.d65ea8f71fbf