UNPKG

@fliklab/react-push-notification

Version:

Simple and easy-to-use web push notification library for React

10 lines (8 loc) 259 B
interface UsePushNotificationReturn { isSubscribed: boolean; error: string | null; subscribe: () => Promise<void>; unsubscribe: () => void; } declare const usePushNotification: () => UsePushNotificationReturn; export { usePushNotification };