Skip to content

Commit

Permalink
refactor(types): some more types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 28, 2023
1 parent 2e23e67 commit 0ff50f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/json/JsonGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const createObjectForExportsInfo = (data, exportsInfo, runtime) => {
const used = exportInfo.getUsed(runtime);
if (used === UsageState.Unused) continue;

/** @type {any} */
let value;
if (used === UsageState.OnlyPropertiesUsed && exportInfo.exportsInfo) {
value = createObjectForExportsInfo(
Expand Down Expand Up @@ -92,6 +93,7 @@ const createObjectForExportsInfo = (data, exportsInfo, runtime) => {
: { length: arrayLengthWhenUsed },
reducedData
);
/** @type {number} */
const generatedLength =
arrayLengthWhenUsed !== undefined
? Math.max(arrayLengthWhenUsed, reducedData.length)
Expand Down

0 comments on commit 0ff50f4

Please sign in to comment.