react-web-notification
react-web-notification copied to clipboard
Typings for Typescript
Have you ever thought about adding Typescript typings to your project? I would really appreciate it.
I'm always welcome your Pull Request
declare module "react-web-notification" {
interface NotificationProps {
title: string;
ignore?: boolean;
disableActiveWindow?: boolean;
askAgain?: boolean;
notSupported?: () => void;
onPermissionGranted?: () => void;
onPermissionDenied?: () => void;
onShow?: () => void;
onClick?: () => void;
onClose?: () => void;
onError?: () => void;
timeout?: number;
options?: NotificationOptions;
swRegistration?: ServiceWorkerRegistration;
}
export default class Notification extends React.Component<
NotificationProps
> {}
}