From af48da85cb387e5ef1b90cc05589aa135b695361 Mon Sep 17 00:00:00 2001 From: Salman Muin Kayser Chishti Date: Thu, 9 Apr 2026 18:13:39 +0000 Subject: [PATCH] refactor: update async-function types for v9 imports, add getOctokit to arguments --- src/async-function.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/async-function.ts b/src/async-function.ts index 84035f2..30613f1 100644 --- a/src/async-function.ts +++ b/src/async-function.ts @@ -1,17 +1,17 @@ import * as core from '@actions/core' import * as exec from '@actions/exec' -import {Context} from '@actions/github/lib/context' -import {GitHub} from '@actions/github/lib/utils' +import type {context, getOctokit} from '@actions/github' import * as glob from '@actions/glob' import * as io from '@actions/io' const AsyncFunction = Object.getPrototypeOf(async () => null).constructor export declare type AsyncFunctionArguments = { - context: Context + context: typeof context core: typeof core - github: InstanceType - octokit: InstanceType + github: ReturnType + octokit: ReturnType + getOctokit: typeof getOctokit exec: typeof exec glob: typeof glob io: typeof io