mirror of
https://github.com/actions/github-script.git
synced 2026-04-30 02:30:11 +00:00
refactor: update async-function types for v9 imports, add getOctokit to arguments
This commit is contained in:
committed by
Salman Muin Kayser Chishti
parent
926497b406
commit
af48da85cb
@@ -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<typeof GitHub>
|
||||
octokit: InstanceType<typeof GitHub>
|
||||
github: ReturnType<typeof getOctokit>
|
||||
octokit: ReturnType<typeof getOctokit>
|
||||
getOctokit: typeof getOctokit
|
||||
exec: typeof exec
|
||||
glob: typeof glob
|
||||
io: typeof io
|
||||
|
||||
Reference in New Issue
Block a user