-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #402 from typed-actions/export-types
Expose async-function argument type
- Loading branch information
Showing
4 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/// <reference types="node" /> | ||
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 * as glob from '@actions/glob'; | ||
import * as io from '@actions/io'; | ||
import fetch from 'node-fetch'; | ||
export declare type AsyncFunctionArguments = { | ||
context: Context; | ||
core: typeof core; | ||
github: InstanceType<typeof GitHub>; | ||
exec: typeof exec; | ||
glob: typeof glob; | ||
io: typeof io; | ||
fetch: typeof fetch; | ||
require: NodeRequire; | ||
__original_require__: NodeRequire; | ||
}; | ||
export declare function callAsyncFunction<T>(args: AsyncFunctionArguments, source: string): Promise<T>; |