Skip to content

Commit 652783f

Browse files
committed
types: update type declarations to match v9 async-function changes
1 parent af48da8 commit 652783f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

types/async-function.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
/// <reference types="node" />
22
import * as core from '@actions/core';
33
import * as exec from '@actions/exec';
4-
import { Context } from '@actions/github/lib/context';
5-
import { GitHub } from '@actions/github/lib/utils';
4+
import type { context, getOctokit } from '@actions/github';
65
import * as glob from '@actions/glob';
76
import * as io from '@actions/io';
87
export declare type AsyncFunctionArguments = {
9-
context: Context;
8+
context: typeof context;
109
core: typeof core;
11-
github: InstanceType<typeof GitHub>;
12-
octokit: InstanceType<typeof GitHub>;
10+
github: ReturnType<typeof getOctokit>;
11+
octokit: ReturnType<typeof getOctokit>;
12+
getOctokit: typeof getOctokit;
1313
exec: typeof exec;
1414
glob: typeof glob;
1515
io: typeof io;

0 commit comments

Comments
 (0)