From f58470ee1275330046b0867f70bcd3f2378a2a25 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Fri, 28 Jan 2022 14:54:32 +0300 Subject: [PATCH] fix: types (#664) --- .github/workflows/nodejs.yml | 11 ----------- src/index.js | 2 +- types/index.d.ts | 4 ++-- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index a91c415..6c0e444 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -35,9 +35,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: "npm" - - name: Use latest NPM - run: sudo npm i -g npm - - name: Install dependencies run: npm ci @@ -74,14 +71,6 @@ jobs: node-version: ${{ matrix.node-version }} cache: "npm" - - name: Use latest NPM on ubuntu/macos - if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' - run: sudo npm i -g npm - - - name: Use latest NPM on windows - if: matrix.os == 'windows-latest' - run: npm i -g npm - - name: Install dependencies run: npm ci diff --git a/src/index.js b/src/index.js index efb4505..0cb3f9f 100644 --- a/src/index.js +++ b/src/index.js @@ -37,7 +37,7 @@ const template = /\[\\*([\w:]+)\\*\]/i; * @property {string} filename * @property {Asset["source"]} source * @property {Force | undefined} force - * @property {{ [key: string]: string }} info + * @property {{ [key: string]: any }} info */ /** diff --git a/types/index.d.ts b/types/index.d.ts index 9d310be..9929913 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -20,7 +20,7 @@ export = CopyPlugin; * @property {string} filename * @property {Asset["source"]} source * @property {Force | undefined} force - * @property {{ [key: string]: string }} info + * @property {{ [key: string]: any }} info */ /** * @typedef {string} StringPattern @@ -217,7 +217,7 @@ type CopiedResult = { source: Asset["source"]; force: Force | undefined; info: { - [key: string]: string; + [key: string]: any; }; }; type StringPattern = string;