Skip to content
Français

TaskInputValues

Read-only mapping from each named task dependency to its inferred output type. Used by the named-input overload of defineTask().

export type TaskInputValues<Inputs extends Readonly<Record<string, Task>>> = {
  readonly [Key in keyof Inputs]: Inputs[Key] extends Task<infer Value>
    ? Value
    : never;
};