UNPKG

hardhat

Version:

Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.

13 lines 885 B
import type { LazyActionObject, NewTaskDefinitionBuilder, TaskArguments } from "../../../../types/tasks.js"; import type { NewUtilsTaskActionFunction, NewUtilsTaskDefinition } from "../types.js"; /** * Builds a utils task from a configured task builder and a lazily-loaded action. * * The standard builder's `setAction`/`build` are hardcoded to * `NewTaskActionFunction`, so it can't produce a `NewUtilsTaskDefinition` on its * own. This helper requires the action to be a `NewUtilsTaskActionFunction` * (rejecting wider actions at the call site), which is what makes re-narrowing * the built definition sound. */ export declare function buildUtilsTask<TaskArgumentsT extends TaskArguments>(builder: NewTaskDefinitionBuilder<TaskArgumentsT>, action: LazyActionObject<NewUtilsTaskActionFunction<TaskArgumentsT>>): NewUtilsTaskDefinition; //# sourceMappingURL=utils-task.d.ts.map