Skip to content

Commit f58470e

Browse files
fix: types (#664)
1 parent 796dd64 commit f58470e

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

.github/workflows/nodejs.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ jobs:
3535
node-version: ${{ matrix.node-version }}
3636
cache: "npm"
3737

38-
- name: Use latest NPM
39-
run: sudo npm i -g npm
40-
4138
- name: Install dependencies
4239
run: npm ci
4340

@@ -74,14 +71,6 @@ jobs:
7471
node-version: ${{ matrix.node-version }}
7572
cache: "npm"
7673

77-
- name: Use latest NPM on ubuntu/macos
78-
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
79-
run: sudo npm i -g npm
80-
81-
- name: Use latest NPM on windows
82-
if: matrix.os == 'windows-latest'
83-
run: npm i -g npm
84-
8574
- name: Install dependencies
8675
run: npm ci
8776

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const template = /\[\\*([\w:]+)\\*\]/i;
3737
* @property {string} filename
3838
* @property {Asset["source"]} source
3939
* @property {Force | undefined} force
40-
* @property {{ [key: string]: string }} info
40+
* @property {{ [key: string]: any }} info
4141
*/
4242

4343
/**

types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export = CopyPlugin;
2020
* @property {string} filename
2121
* @property {Asset["source"]} source
2222
* @property {Force | undefined} force
23-
* @property {{ [key: string]: string }} info
23+
* @property {{ [key: string]: any }} info
2424
*/
2525
/**
2626
* @typedef {string} StringPattern
@@ -217,7 +217,7 @@ type CopiedResult = {
217217
source: Asset["source"];
218218
force: Force | undefined;
219219
info: {
220-
[key: string]: string;
220+
[key: string]: any;
221221
};
222222
};
223223
type StringPattern = string;

0 commit comments

Comments
 (0)