@beenotung/tslib
Version:
utils library in Typescript
7 lines (6 loc) • 336 B
TypeScript
export declare function isSupportNotification(): boolean;
export declare function requireNotification(): Promise<boolean>;
/**
* alert can be used as fallback, otherwise will reject the promise
* */
export declare function showNotification(msg: string, options: NotificationOptions, useAlert?: boolean): Promise<void | Notification>;