We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Does this library work on typescript?
The text was updated successfully, but these errors were encountered:
I found it did not unless I generated my own type definitions.
I published this fork (re-written with hooks, vite, and typescript) to satisfy this need for one of my projects:
https://www.npmjs.com/package/react-ios-pwa-prompt-ts
Sorry, something went wrong.
Simply create a .d.ts file and declare the module:
declare module 'react-ios-pwa-prompt' { import React from 'react'; interface PWAPromptProps { timesToShow?: number; promptOnVisit?: number; permanentlyHideOnDismiss?: boolean; copyTitle?: string; copyBody?: string; copyShareButtonLabel?: string; copyAddHomeButtonLabel?: string; copyClosePrompt?: string; delay?: number; debug?: boolean; onClose?: () => void; } const PWAPrompt: React.ComponentType<PWAPromptProps>; export default PWAPrompt; }
No branches or pull requests
Does this library work on typescript?
The text was updated successfully, but these errors were encountered: