# TaskData

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

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

`TData` after its trip through the store. A `Date` in `TData` reads back as its ISO string, the
same as a record from a `KvCollection`. A job scheduled with `undefined` doesn't store any data and
reads back as `undefined`.

## Declaration

```ts
type TaskData<TData> =
    IsUnknown<TData> extends true
        ? unknown
        : IsNoData<TData> extends true
          ? NoData
          : | Stored<Exclude<TData, undefined>>
            | Extract<TData, undefined>;
```
