Skip to content

Commit 4d7f04f

Browse files
PeliCopilot
authored andcommitted
Fix callback type annotations required by CI lint
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 5efd6ad commit 4d7f04f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎skills/rig/rig.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ function copilotResponseSchema(schema: JsonSchemaObject): JsonSchemaObject {
725725
}
726726
for (const key of ["anyOf", "oneOf", "allOf"]) {
727727
const value = schema[key];
728-
if (Array.isArray(value)) result[key] = value.map(item => isJsonSchemaObject(item) ? copilotResponseSchema(item) : item);
728+
if (Array.isArray(value)) result[key] = value.map((item: unknown) => isJsonSchemaObject(item) ? copilotResponseSchema(item) : item);
729729
}
730730
return result;
731731
}

‎src/launch-tool.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { createRigLaunchTool } from "rig/launch-tool";
66

77
const temporaryDirs: string[] = [];
88
afterEach(async () => {
9-
await Promise.all(temporaryDirs.splice(0).map(path => rm(path, { recursive: true, force: true })));
9+
await Promise.all(temporaryDirs.splice(0).map((path: string) => rm(path, { recursive: true, force: true })));
1010
});
1111

1212
async function fixture(source: string, timeoutMs?: number) {

0 commit comments

Comments
 (0)