react-web-notification icon indicating copy to clipboard operation
react-web-notification copied to clipboard

Typings for Typescript

Open RohrerF opened this issue 6 years ago • 2 comments

Have you ever thought about adding Typescript typings to your project? I would really appreciate it.

RohrerF avatar Mar 28 '18 15:03 RohrerF

I'm always welcome your Pull Request

georgeOsdDev avatar Apr 06 '18 06:04 georgeOsdDev

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
  > {}
}

yilinjuang avatar Mar 04 '20 19:03 yilinjuang