From 84b76bf1eb6c4e97e39f8ff3bae91ea2ebcf3601 Mon Sep 17 00:00:00 2001 From: Kevin Groat Date: Sun, 6 Jan 2019 20:40:59 -0500 Subject: [PATCH] Made manifestTransforms accept a ReadonlyArray --- types/workbox-webpack-plugin/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/workbox-webpack-plugin/index.d.ts b/types/workbox-webpack-plugin/index.d.ts index 7b460a6de4..6d874737f3 100644 --- a/types/workbox-webpack-plugin/index.d.ts +++ b/types/workbox-webpack-plugin/index.d.ts @@ -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) => { manifest: ManifestEntry[], warnings?: string[] })[] | null; } export interface GenerateSWOptions extends CommonOptions {