Skip to content

Commit df9911d

Browse files
committed
fix(build): Correct TypeScript type for ssr data
Resolves a TypeScript build error (TS7053) by explicitly typing the `allResistanceData` object. This ensures the object is not inferred as an empty type `{}`, allowing dynamic assignment of properties.
1 parent 482b134 commit df9911d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function docusaurusPluginResistogram(
5151
const { abx, org, sources, hierarchicalSources, allAbxIds, allOrgIds, orgClasses, orgIdToRank, abxSyn2Id, orgSyn2Id } = await getSharedData(dataPath, files);
5252

5353
const resistanceDataFileNames = new Map<string, string>();
54-
const allResistanceData = {};
54+
const allResistanceData: { [key: string]: any[] } = {};
5555

5656
for (const source of sources) {
5757
const resistanceData = await loadResistanceDataForSource(source, sources, dataPath);

0 commit comments

Comments
 (0)