Skip to content

Commit c04b12a

Browse files
committed
ugly cast but should fix ci
1 parent e5e9ef1 commit c04b12a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/tasks-gen/scripts/inference-codegen.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ async function generateBinaryInputTypes(
147147
const propName = propSignature.name.getText(tsSource);
148148

149149
const propIsMedia =
150-
typeof spec["properties"] !== "string" &&
151-
typeof spec["properties"]?.[propName] !== "string" &&
152-
typeof spec["properties"]?.[propName]?.["comment"] === "string"
153-
? !!spec["properties"]?.[propName]?.["comment"]?.includes("type=binary")
150+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
151+
typeof (spec as any)["properties"]?.[propName]?.["comment"] === "string"
152+
? // eslint-disable-next-line @typescript-eslint/no-explicit-any
153+
!!(spec as any)["properties"][propName]["comment"].includes("type=binary")
154154
: false;
155155
if (!propIsMedia) {
156156
return;

0 commit comments

Comments
 (0)