Type Alias InferParameters<TValue>

InferParameters: TValue extends InvokableFn<infer R, any> ? R : never

Infers the parameter tuple type from an invokable function or method.

Given an invokable value, extracts its arguments as a tuple type. This is used internally by the middleware system to derive the correct type parameters for middleware from the enhanced method's signature.

Type Parameters

  • TValue

    The invokable type to extract parameters from

    IMPORT_PATH: @daiso-tech/core/middleware