swarpc - v0.16.1
    Preparing search index...

    Type Alias ProcedureImplementation<I, P, S>

    ProcedureImplementation: (
        input: Schema.InferOutput<I>,
        onProgress: (progress: Schema.InferInput<P>) => void,
        tools: { abortSignal?: AbortSignal; nodeId: string },
    ) => Promise<Schema.InferInput<S>>

    An implementation of a procedure

    Type Parameters

    • I extends Schema
    • P extends Schema
    • S extends Schema

    Type Declaration

      • (
            input: Schema.InferOutput<I>,
            onProgress: (progress: Schema.InferInput<P>) => void,
            tools: { abortSignal?: AbortSignal; nodeId: string },
        ): Promise<Schema.InferInput<S>>
      • Parameters

        • input: Schema.InferOutput<I>
        • onProgress: (progress: Schema.InferInput<P>) => void
        • tools: { abortSignal?: AbortSignal; nodeId: string }
          • OptionalabortSignal?: AbortSignal

            AbortSignal that can be used to handle request cancellation -- see Make cancellable requests

          • nodeId: string

            ID of the Node the request is being processed on.

        Returns Promise<Schema.InferInput<S>>