Libraries
    Preparing search index...

    Type Alias HandlerMap<TEndpoints>

    HandlerMap: {
        [G in keyof TEndpoints]: {
            [E in keyof TEndpoints[G]]: TEndpoints[G][E] extends AnySubscriptionBuilder
                ? SubscriptionHandlerEntry<TEndpoints[G][E]>
                : TEndpoints[G][E] extends AnyEndpoint
                    ? HandlerEntry<TEndpoints[G][E]>
                    : never
        }
    }

    A compile-time complete mapping from an endpoint group structure to handler entries. Every endpoint key in every group must have a corresponding HandlerEntry — omitting one is a type error.

    Subscription endpoints (created via endpoint.subscription()) are mapped to SubscriptionHandlerEntry instead of HandlerEntry.

    Type Parameters

    • TEndpoints

      A record of groups, each a record of endpoint builders. Typically the return type of defineApi() with server-side extensions applied.