fix(types): correct BuildInfo and BuildMeta type definitions (#19200)

This commit is contained in:
inottn 2025-02-06 21:41:24 +08:00 committed by GitHub
parent 8ac130a2c8
commit ac6ffca02d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -97,10 +97,6 @@ const makeSerializable = require("./util/makeSerializable");
/** /**
* @typedef {object} KnownBuildMeta * @typedef {object} KnownBuildMeta
* @property {string=} moduleArgument
* @property {string=} exportsArgument
* @property {boolean=} strict
* @property {string=} moduleConcatenationBailout
* @property {("default" | "namespace" | "flagged" | "dynamic")=} exportsType * @property {("default" | "namespace" | "flagged" | "dynamic")=} exportsType
* @property {(false | "redirect" | "redirect-warn")=} defaultObject * @property {(false | "redirect" | "redirect-warn")=} defaultObject
* @property {boolean=} strictHarmonyModule * @property {boolean=} strictHarmonyModule
@ -113,6 +109,10 @@ const makeSerializable = require("./util/makeSerializable");
* @typedef {object} KnownBuildInfo * @typedef {object} KnownBuildInfo
* @property {boolean=} cacheable * @property {boolean=} cacheable
* @property {boolean=} parsed * @property {boolean=} parsed
* @property {string=} moduleArgument
* @property {string=} exportsArgument
* @property {boolean=} strict
* @property {string=} moduleConcatenationBailout
* @property {LazySet<string>=} fileDependencies * @property {LazySet<string>=} fileDependencies
* @property {LazySet<string>=} contextDependencies * @property {LazySet<string>=} contextDependencies
* @property {LazySet<string>=} missingDependencies * @property {LazySet<string>=} missingDependencies

8
types.d.ts vendored
View File

@ -7482,6 +7482,10 @@ declare interface KnownAssetInfo {
declare interface KnownBuildInfo { declare interface KnownBuildInfo {
cacheable?: boolean; cacheable?: boolean;
parsed?: boolean; parsed?: boolean;
moduleArgument?: string;
exportsArgument?: string;
strict?: boolean;
moduleConcatenationBailout?: string;
fileDependencies?: LazySet<string>; fileDependencies?: LazySet<string>;
contextDependencies?: LazySet<string>; contextDependencies?: LazySet<string>;
missingDependencies?: LazySet<string>; missingDependencies?: LazySet<string>;
@ -7493,10 +7497,6 @@ declare interface KnownBuildInfo {
snapshot?: null | Snapshot; snapshot?: null | Snapshot;
} }
declare interface KnownBuildMeta { declare interface KnownBuildMeta {
moduleArgument?: string;
exportsArgument?: string;
strict?: boolean;
moduleConcatenationBailout?: string;
exportsType?: "namespace" | "dynamic" | "default" | "flagged"; exportsType?: "namespace" | "dynamic" | "default" | "flagged";
defaultObject?: false | "redirect" | "redirect-warn"; defaultObject?: false | "redirect" | "redirect-warn";
strictHarmonyModule?: boolean; strictHarmonyModule?: boolean;