UNPKG

@swishapp/browser

Version:

JS library to integrate Swish into a browser environment.

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