Skip to content

Commit 52163cb

Browse files
authored
[EngSys] Simplify TypeDefs (Azure#35888)
1 parent 9b87e61 commit 52163cb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/src/comment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function parseExistingComments(comments, commentGroupName) {
4545
* Creates a new issue comment or updates an existing one.
4646
*
4747
*
48-
* @param {(import("@octokit/core").Octokit & import("@octokit/plugin-rest-endpoint-methods/dist-types/types.js").Api & { paginate: import("@octokit/plugin-paginate-rest").PaginateInterface; })} github
48+
* @param {import('@actions/github-script').AsyncFunctionArguments['github']} github
4949
* @param {typeof import("@actions/core")} core
5050
* @param {string} owner - The repository owner.
5151
* @param {string} repo - The repository name.

.github/workflows/src/summarize-checks/summarize-checks.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export default async function summarizeChecks({ github, context, core }) {
228228
}
229229

230230
/**
231-
* @param {(import("@octokit/core").Octokit & import("@octokit/plugin-rest-endpoint-methods/dist-types/types.js").Api & { paginate: import("@octokit/plugin-paginate-rest").PaginateInterface; })} github
231+
* @param {import('@actions/github-script').AsyncFunctionArguments['github']} github
232232
* @param {import('@actions/github').context } context
233233
* @param {typeof import("@actions/core")} core
234234
* @param {string} owner
@@ -324,8 +324,8 @@ export async function summarizeChecksImpl(
324324
}
325325

326326
/**
327-
* @param {(import("@octokit/core").Octokit & import("@octokit/plugin-rest-endpoint-methods/dist-types/types.js").Api & { paginate: import("@octokit/plugin-paginate-rest").PaginateInterface; })} github
328-
* @param {typeof import("@actions/core")} core
327+
* @param {import('@actions/github-script').AsyncFunctionArguments['github']} github
328+
* @param {import('@actions/github-script').AsyncFunctionArguments['core']} core
329329
* @returns {Promise<void>}
330330
*/
331331
export async function logGitHubRateLimitInfo(github, core) {
@@ -403,7 +403,7 @@ function getGraphQLQuery(owner, repo, sha, prNumber) {
403403
// #endregion
404404
// #region label update
405405
/**
406-
* @param {(import("@octokit/core").Octokit & import("@octokit/plugin-rest-endpoint-methods/dist-types/types.js").Api & { paginate: import("@octokit/plugin-paginate-rest").PaginateInterface; })} github
406+
* @param {import('@actions/github-script').AsyncFunctionArguments['github']} github
407407
* @param {import('@actions/github').context } context
408408
* @param {typeof import("@actions/core")} core
409409
* @param {string} owner
@@ -481,7 +481,7 @@ export async function handleLabeledEvent(
481481
// #endregion
482482
// #region checks
483483
/**
484-
* @param {(import("@octokit/core").Octokit & import("@octokit/plugin-rest-endpoint-methods/dist-types/types.js").Api & { paginate: import("@octokit/plugin-paginate-rest").PaginateInterface; })} github
484+
* @param {import('@actions/github-script').AsyncFunctionArguments['github']} github
485485
* @param {typeof import("@actions/core")} core
486486
* @param {string} owner - The repository owner.
487487
* @param {string} repo - The repository name.

0 commit comments

Comments
 (0)