# TaskContext

`interface` in `plugin-tasks` · v0.1.0-next.1

<https://seedcord.org/docs/packages/plugin-tasks/0.1.0-next.1/interfaces/task-context>

What the plugin passes to a task's constructor.

```ts
interface TaskContext<TData = unknown>
```

## Properties

### core

```ts
core: CoreBase;
```

### data

```ts
data: TaskData<TData>;
```

### key

```ts
key: string;
```

### logger

```ts
logger: Logger;
```

### signal

```ts
signal: AbortSignal;
```

### startedAt

```ts
startedAt: Date;
```

### trigger

```ts
trigger: TaskTrigger;
```
