Type Alias Action<I, O, S>

Action: (input?: TypeOf<I>, options?: ActionRunOptions<S>) => Promise<TypeOf<O>> & {
    __action: ActionMetadata<I, O, S>;
    __registry: Registry;
    run(
        input: TypeOf<I>,
        options?: ActionRunOptions<TypeOf<S>>,
    ): Promise<ActionResult<TypeOf<O>>>;
    stream(
        input?: TypeOf<I>,
        opts?: ActionRunOptions<TypeOf<S>>,
    ): StreamingResponse<O, S>;
}

Self-describing, validating, observable, locally and remotely callable function.

Type Parameters