# When

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

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

When a scheduled task runs. Pass `in` or `at`.

## Declaration

```ts
type When<TIn extends string = string> = RequireExactlyOne<{
    in: ValidDuration<TIn>;
    at: Date | number;
}>;
```
