Skip to main content

TaskSpec


Nadle / TaskSpec

Type Alias: TaskSpec<Options>

TaskSpec<Options> = TaskConfiguration & [void] extends [Options] ? object : object extends Options ? object : object

Defined in: packages/nadle/src/core/registration/api.ts:58

A task registration spec. run/options are required when the task body's Options has required fields, optional otherwise. Config fields (group, dependsOn, …) come from TaskConfiguration and sit directly on the spec. run and options are reserved keys and must never be added to TaskConfiguration.

Type Parameters

Options

Options = void