probot
Version:
A framework for building GitHub Apps to automate and improve your workflow
11 lines (10 loc) • 491 B
TypeScript
import type { Handler, StripUndefined } from "../types.js";
import type { Env, ServerOptions } from "../types.js";
type SetupFactoryOptions = StripUndefined<Required<Pick<ServerOptions, "log" | "port" | "host">>> & Pick<ServerOptions, "request"> & {
updateEnv?: (env: Env) => Env;
SmeeClient?: {
createChannel: () => Promise<string | undefined>;
} | undefined;
};
export declare const setupAppFactory: (options: SetupFactoryOptions) => () => Promise<Handler>;
export {};