Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
12 lines
652 B
Plaintext
12 lines
652 B
Plaintext
import type { TaskConfig, TaskHandler } from '../../../config/types/taskTypes.js';
|
|
/**
|
|
* Imports a handler function from a given path.
|
|
*/
|
|
export declare function importHandlerPath<T>(path: string): Promise<T>;
|
|
/**
|
|
* The `handler` property of a task config can either be a function or a path to a module that exports a function.
|
|
* This function resolves the handler to a function, either by importing it from the path or returning the function directly
|
|
* if it is already a function.
|
|
*/
|
|
export declare function getTaskHandlerFromConfig(taskConfig?: TaskConfig): Promise<TaskHandler<string, string>>;
|
|
//# sourceMappingURL=importHandlerPath.d.ts.map |