Type alias RunnableFunc<RunInput, RunOutput>

RunnableFunc<RunInput, RunOutput>: ((input, options?) => RunOutput | Promise<RunOutput>)

Type Parameters

  • RunInput

  • RunOutput

Type declaration

    • (input, options?): RunOutput | Promise<RunOutput>
    • Parameters

      • input: RunInput
      • Optional options: {
            config?: RunnableConfig;
        } | Record<string, any> | Record<string, any> & {
            config: RunnableConfig;
        }

      Returns RunOutput | Promise<RunOutput>

Generated using TypeDoc