UNPKG

@swishapp/browser

Version:

JS library to integrate Swish into a browser environment.

19 lines (18 loc) 404 B
export interface Ref<T> { current: T; } export interface Notifications { pushNotification(notification: Notification): string; removeNotification(id: string): void; clearAllNotifications(): void; } export interface Notification { title?: string; text: string; image?: string; action?: { label: string; url?: string; onAction?: () => void; }; }