UNPKG

use-pwa

Version:

use-pwa is install and update handler for pwa.

17 lines 417 B
type UserChoice = { outcome: "accepted" | "dismissed"; platform: string; }; export type PwaData = { appinstalled: boolean; canInstallprompt: boolean; enabledA2hs: boolean; enabledPwa: boolean; isLoading: boolean; isPwa: boolean; showInstallPrompt: () => void; userChoice?: UserChoice; }; export default function usePwa(): PwaData; export {}; //# sourceMappingURL=index.d.ts.map