Skip to content

Commit 31ff357

Browse files
Remove use of any in scripts/add-fields-to-scenarios.ts
1 parent c906e76 commit 31ff357

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extensions/ql-vscode/scripts/add-fields-to-scenarios.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { pathExists, readJson, writeJson } from "fs-extra";
1515
import { resolve, relative } from "path";
1616

1717
import type { Octokit } from "@octokit/core";
18+
import type { EndpointDefaults } from "@octokit/types";
1819
import type { RestEndpointMethodTypes } from "@octokit/rest";
1920
import { throttling } from "@octokit/plugin-throttling";
2021

@@ -42,7 +43,7 @@ const octokit = new MyOctokit({
4243
throttle: {
4344
onRateLimit: (
4445
retryAfter: number,
45-
options: any,
46+
options: EndpointDefaults,
4647
octokit: Octokit,
4748
): boolean => {
4849
octokit.log.warn(
@@ -53,7 +54,7 @@ const octokit = new MyOctokit({
5354
},
5455
onSecondaryRateLimit: (
5556
_retryAfter: number,
56-
options: any,
57+
options: EndpointDefaults,
5758
octokit: Octokit,
5859
): void => {
5960
octokit.log.warn(

0 commit comments

Comments
 (0)