Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/async-function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import {GitHub} from '@actions/github/lib/utils'
import * as glob from '@actions/glob'
import * as io from '@actions/io'
import type {OctokitOptions, OctokitPlugin} from '@octokit/core/types'

Check failure on line 7 in src/async-function.ts

View workflow job for this annotation

GitHub Actions / check-dist

Cannot find module '@octokit/core/types' or its corresponding type declarations.

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

Expand All @@ -12,6 +13,11 @@
core: typeof core
github: InstanceType<typeof GitHub>
octokit: InstanceType<typeof GitHub>
getOctokit: (
token: string,
options?: OctokitOptions,
...additionalPlugins: OctokitPlugin[]
) => InstanceType<typeof GitHub>
exec: typeof exec
glob: typeof glob
io: typeof io
Expand Down
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ async function main(): Promise<void> {
__original_require__: __non_webpack_require__,
github,
octokit: github,
getOctokit,
context,
core,
exec,
Expand Down
Loading