---
url: /reference/api/logger/prompts.TypeAlias.Task.md
---
# Type Alias: Task

```ts twoslash
// @include: imports
type Task = object;
```

Defined in: node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:904

## Properties

&#x20;`enabled?`

`boolean`

If enabled === false the task will be skipped

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:916

&#x20;`task`

(`message`) => `string` | `Promise`<`string`> | `void` | `Promise`<`void`>

Task function

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:912

&#x20;`title`

`string`

Task title

node\_modules/.pnpm/@clack+prompts@1.9.0/node\_modules/@clack/prompts/dist/index.d.mts:908
