Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typings for Typescript #38

Open
RohrerF opened this issue Mar 28, 2018 · 2 comments
Open

Typings for Typescript #38

RohrerF opened this issue Mar 28, 2018 · 2 comments

Comments

@RohrerF
Copy link

RohrerF commented Mar 28, 2018

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

@georgeOsdDev
Copy link
Member

georgeOsdDev commented Apr 6, 2018

I'm always welcome your Pull Request

@yilinjuang
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants