Beignet API reference
    Preparing search index...

    Interface DefineTaskOptions<Name, Input, Ctx, Output>

    Options for defineTask(...).

    interface DefineTaskOptions<
        Name extends string,
        Input extends StandardSchema,
        Ctx,
        Output,
    > {
        description?: string;
        input: Input;
        handle(
            args: TaskHandleArgs<TaskDef<Name, Input, Ctx, Output>, Ctx>,
        ): MaybePromise<Output>;
    }

    Type Parameters

    Index
    description?: string

    Optional human-readable description for docs and tooling.

    input: Input

    Standard Schema input validator.