We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 926497b commit af48da8Copy full SHA for af48da8
1 file changed
src/async-function.ts
@@ -1,17 +1,17 @@
1
import * as core from '@actions/core'
2
import * as exec from '@actions/exec'
3
-import {Context} from '@actions/github/lib/context'
4
-import {GitHub} from '@actions/github/lib/utils'
+import type {context, getOctokit} from '@actions/github'
5
import * as glob from '@actions/glob'
6
import * as io from '@actions/io'
7
8
const AsyncFunction = Object.getPrototypeOf(async () => null).constructor
9
10
export declare type AsyncFunctionArguments = {
11
- context: Context
+ context: typeof context
12
core: typeof core
13
- github: InstanceType<typeof GitHub>
14
- octokit: InstanceType<typeof GitHub>
+ github: ReturnType<typeof getOctokit>
+ octokit: ReturnType<typeof getOctokit>
+ getOctokit: typeof getOctokit
15
exec: typeof exec
16
glob: typeof glob
17
io: typeof io
0 commit comments