Type Alias InferMethodNames<TInstance>

InferMethodNames: {
    [TKey in keyof TInstance]: Exclude<TInstance[TKey], undefined> extends InvokableFn<
        any,
        any,
    >
        ? TKey
        : never
}[keyof TInstance]

Extracts the keys of an object whose values are invokable functions.

This utility type filters the keys of TInstance to only include those that are functions, enabling type-safe method selection when applying middleware to specific methods of an object.

Type Parameters

  • TInstance

    The object type to extract method names from

    IMPORT_PATH: @daiso-tech/core/middleware