Type Alias Handler<T, Args>

Handler: (value: T, ...args: Args) => T

Type definition for a handler function that takes a generic value and additional arguments The handler must return the same type as its first argument This is a utility type to be used in the handler pipeline. (Probably don't need to use this directly) Using the createHandlerChain function to create a handler chain would have typescript infer the correct type for the handler chain.

Type Parameters

  • T
  • Args extends any[]

Type declaration

    • (value: T, ...args: Args): T
    • Parameters

      Returns T