Skip to content

Commit 48fd614

Browse files
committed
chore(scripts/build): use ts-expect-error over double cast
1 parent 65d72c5 commit 48fd614

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/build/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,13 @@ export const createDataBundle = async () => {
230230

231231
applyTransforms(bcd);
232232

233-
/** @type {*} */
234-
const result = {
233+
// @ts-expect-error After applyTransforms, bcd matches the public CompatData
234+
// shape (mirrors resolved, version_last added, descriptions/notes converted
235+
// to HTML), but its static type is still InternalCompatData.
236+
return {
235237
...bcd,
236238
__meta: generateMeta(),
237239
};
238-
239-
return /** @type {CompatData}*/ (result);
240240
};
241241

242242
/**

0 commit comments

Comments
 (0)