Skip to content

Commit fea3514

Browse files
committed
ts-ignore until TypeScript upgrade
1 parent d92802d commit fea3514

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/file/paragraph/links/numbered-item-ref.ts

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ export class NumberedItemReference extends SimpleField {
5555
const { hyperlink = true, referenceFormat = NumberedItemReferenceFormat.FULL_CONTEXT } = options;
5656
const baseInstruction = `REF ${bookmarkId}`;
5757

58+
// TODO: Requires TypeScript 5.5 update for it to understand `filter`
59+
// @ts-expect-error TS2322
5860
const switches: readonly Switch[] = [...(hyperlink ? (["\\h"] as const) : []), ...[SWITCH_MAP[referenceFormat]].filter((a) => !!a)];
5961

6062
const instruction = `${baseInstruction} ${switches.join(" ")}`;

0 commit comments

Comments
 (0)