types: update type declarations to match v9 async-function changes

This commit is contained in:
Salman Muin Kayser Chishti
2026-04-09 18:13:39 +00:00
committed by Salman Muin Kayser Chishti
parent af48da85cb
commit 652783f052

View File

@@ -1,15 +1,15 @@
/// <reference types="node" /> /// <reference types="node" />
import * as core from '@actions/core'; import * as core from '@actions/core';
import * as exec from '@actions/exec'; import * as exec from '@actions/exec';
import { Context } from '@actions/github/lib/context'; import type { context, getOctokit } from '@actions/github';
import { GitHub } from '@actions/github/lib/utils';
import * as glob from '@actions/glob'; import * as glob from '@actions/glob';
import * as io from '@actions/io'; import * as io from '@actions/io';
export declare type AsyncFunctionArguments = { export declare type AsyncFunctionArguments = {
context: Context; context: typeof context;
core: typeof core; core: typeof core;
github: InstanceType<typeof GitHub>; github: ReturnType<typeof getOctokit>;
octokit: InstanceType<typeof GitHub>; octokit: ReturnType<typeof getOctokit>;
getOctokit: typeof getOctokit;
exec: typeof exec; exec: typeof exec;
glob: typeof glob; glob: typeof glob;
io: typeof io; io: typeof io;