Skip to content
Typeplugin-tasksv0.1.0-next.1

TaskData

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.

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

TData

TData