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
Library Affected: workbox-precaching
Browser & Platform: all browsers
Issue or Feature Request Description: The "precache" function takes this type as a parameter: entries: Array<PrecacheEntry | string>. However the PrecacheEntry interface doesn't seem to be exported from the workbox-precaching package.
entries: Array<PrecacheEntry | string>
When I try to run
import { PrecacheEntry } from "workbox-precaching";
It tells me:
Module '"workbox-precaching"' has no exported member 'PrecacheEntry'.
The text was updated successfully, but these errors were encountered:
Sorry about that—similar to #2770, I think we need to re-export our interfaces from https://github.com/GoogleChrome/workbox/blob/v6/packages/workbox-precaching/src/_types.ts
Sorry, something went wrong.
Same for NetworkFirstOptions in workbox-strategies . Might be worth it to just go over all the interfaces that are on exported functions.
(edit) It's available when importing from "workbox-strategies/NetworkFirst" but not when importing from "workbox-strategies"
"workbox-strategies/NetworkFirst"
"workbox-strategies"
Successfully merging a pull request may close this issue.
Library Affected:
workbox-precaching
Browser & Platform:
all browsers
Issue or Feature Request Description:
The "precache" function takes this type as a parameter:
entries: Array<PrecacheEntry | string>
. However the PrecacheEntry interface doesn't seem to be exported from the workbox-precaching package.When I try to run
import { PrecacheEntry } from "workbox-precaching";
It tells me:
The text was updated successfully, but these errors were encountered: