From ed31965f4ad60f2d640f31f94770b9d7e6024631 Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Tue, 16 May 2023 19:05:43 +0300 Subject: [PATCH] refactor(types): fix --- .prettierignore | 1 + module.d.ts | 25 +++++++++++-------------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.prettierignore b/.prettierignore index d4343e9f2..e1bc03197 100644 --- a/.prettierignore +++ b/.prettierignore @@ -21,6 +21,7 @@ coverage/ # Ignore not supported files *.d.ts +!module.d.ts # Ignore precompiled schemas schemas/**/*.check.js diff --git a/module.d.ts b/module.d.ts index dcfad1099..b0b40382a 100644 --- a/module.d.ts +++ b/module.d.ts @@ -3,47 +3,44 @@ declare namespace webpack { | { type: "declined"; /** The module in question. */ - moduleId: number; - /** the chain from where the update was propagated. */ - chain: number[]; - /** the module id of the declining parent */ - parentId: number; moduleId: number | string; + /** the chain from where the update was propagated. */ + chain: (number | string)[]; + /** the module id of the declining parent */ + parentId: number | string; } | { type: "self-declined"; /** The module in question. */ moduleId: number | string; /** the chain from where the update was propagated. */ - chain: number[]; + chain: (number | string)[]; }; type UnacceptedEvent = { type: "unaccepted"; /** The module in question. */ - moduleId: number; + moduleId: number | string; /** the chain from where the update was propagated. */ - chain: number[]; + chain: (number | string)[]; }; type AcceptedEvent = { type: "accepted"; /** The module in question. */ - moduleId: number; - /** the chain from where the update was propagated. */ - chain: number[]; + moduleId: number | string; /** the modules that are outdated and will be disposed */ - outdatedModules: number[]; + outdatedModules: (number | string)[]; /** the accepted dependencies that are outdated */ outdatedDependencies: { - [id: number]: number[]; + [id: number]: (number | string)[]; }; }; type DisposedEvent = { type: "disposed"; /** The module in question. */ - moduleId: number; + moduleId: number | string; }; type ErroredEvent =