Made manifestTransforms accept a ReadonlyArray

This commit is contained in:
Kevin Groat 2019-01-06 20:40:59 -05:00
parent 279827ac2f
commit 84b76bf1eb
No known key found for this signature in database
GPG Key ID: 9499D63EC304FB88

View File

@ -255,7 +255,7 @@ declare namespace WorkboxWebpackPlugin {
* One or more [`ManifestTransform`](https://developers.google.com/web/tools/workbox/reference-docs/latest/module-workbox-build#.ManifestTransform) functions, which will be applied sequentially against the generated manifest.
* If `modifyUrlPrefix` or `dontCacheBustUrlsMatching` are also specified, their corresponding transformations will be applied first.
*/
manifestTransforms?: ((originalManifest: ManifestEntry[]) => { manifest: ManifestEntry[], warnings?: string[] })[] | null;
manifestTransforms?: ((originalManifest: ReadonlyArray<ManifestEntry>) => { manifest: ManifestEntry[], warnings?: string[] })[] | null;
}
export interface GenerateSWOptions extends CommonOptions {