Skip to content

Commit af48da8

Browse files
committed
refactor: update async-function types for v9 imports, add getOctokit to arguments
1 parent 926497b commit af48da8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/async-function.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import * as core from '@actions/core'
22
import * as exec from '@actions/exec'
3-
import {Context} from '@actions/github/lib/context'
4-
import {GitHub} from '@actions/github/lib/utils'
3+
import type {context, getOctokit} from '@actions/github'
54
import * as glob from '@actions/glob'
65
import * as io from '@actions/io'
76

87
const AsyncFunction = Object.getPrototypeOf(async () => null).constructor
98

109
export declare type AsyncFunctionArguments = {
11-
context: Context
10+
context: typeof context
1211
core: typeof core
13-
github: InstanceType<typeof GitHub>
14-
octokit: InstanceType<typeof GitHub>
12+
github: ReturnType<typeof getOctokit>
13+
octokit: ReturnType<typeof getOctokit>
14+
getOctokit: typeof getOctokit
1515
exec: typeof exec
1616
glob: typeof glob
1717
io: typeof io

0 commit comments

Comments
 (0)