From dc646cb5e2342e7c13c1c9ea81d6d0f3f588a3e7 Mon Sep 17 00:00:00 2001 From: Nathan Hardy Date: Fri, 19 May 2017 10:21:05 +1000 Subject: [PATCH] extract-text-webpack-plugin: Update .extract return type As per https://github.com/webpack-contrib/extract-text-webpack-plugin/pull/343 the .extract() method of ExtractTextPlugin has a return type of 'Loader[]' --- types/extract-text-webpack-plugin/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/extract-text-webpack-plugin/index.d.ts b/types/extract-text-webpack-plugin/index.d.ts index 6da0c183c3..fa1c79d812 100644 --- a/types/extract-text-webpack-plugin/index.d.ts +++ b/types/extract-text-webpack-plugin/index.d.ts @@ -42,7 +42,7 @@ interface ExtractTextPlugin extends Plugin { * Creates an extracting loader from an existing loader. * Use the resulting loader in `module.rules`/`module.loaders`. */ - extract: (loader: Loader | Loader[] | ExtractOptions) => Loader + extract: (loader: Loader | Loader[] | ExtractOptions) => Loader[] } declare const extractTextPlugin: ExtractTextPlugin