forked from amt-pub/react-pwa-install
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
41 lines (40 loc) · 1.18 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* A hook that provides:
* - supported
* - isInstalled
* - pwaInstall
*
* See: https://www.npmjs.com/package/react-pwa-install for more info.
*/
export function useReactPWAInstall(): {
supported: () => boolean;
isInstalled: () => boolean;
pwaInstall: (options: {
title?: string;
logo?: string;
features?: React.ReactNode;
featuresTitle?: string,
description?: string;
descritpionTitle?: string,
instructionTitle?: string,
instructionActionOk?: string,
instructionActionCancel?: string,
instructionActionInstall?: string,
instructionIdeviceAction1?: string,
instructionIdeviceAction2?: string,
instructionFirefoxAction1?: string,
instructionFirefoxAction2?: string,
instructionFirefoxNewAction1?: string,
instructionFirefoxNewAction2?: string,
instructionOperaAction1?: string,
instructionOperaAction2?: string,
instructionNotSupported?: string,
}) => Promise<void>;
};
/**
* Context provider for react-pwa-install
*
* See: https://www.npmjs.com/package/react-pwa-install for more info.
*/
export const ReactPWAInstallProvider: React.FC<{ enableLogging?: boolean }>;
export default ReactPWAInstallProvider;