mirror of
https://github.com/actions/github-script.git
synced 2026-04-30 10:40:10 +00:00
20 lines
701 B
TypeScript
20 lines
701 B
TypeScript
/// <reference types="node" />
|
|
import * as core from '@actions/core';
|
|
import * as exec from '@actions/exec';
|
|
import type { context, getOctokit } from '@actions/github';
|
|
import * as glob from '@actions/glob';
|
|
import * as io from '@actions/io';
|
|
export declare type AsyncFunctionArguments = {
|
|
context: typeof context;
|
|
core: typeof core;
|
|
github: ReturnType<typeof getOctokit>;
|
|
octokit: ReturnType<typeof getOctokit>;
|
|
getOctokit: typeof getOctokit;
|
|
exec: typeof exec;
|
|
glob: typeof glob;
|
|
io: typeof io;
|
|
require: NodeRequire;
|
|
__original_require__: NodeRequire;
|
|
};
|
|
export declare function callAsyncFunction<T>(args: AsyncFunctionArguments, source: string): Promise<T>;
|