kit
    Preparing search index...

    Type Alias RequestShortcuts<TEndpoints>

    RequestShortcuts: {
        [TMethod in RequestMethod]: {
            [TEndpoint in Extract<keyof TEndpoints, string>]: TMethod extends "get"
                ? GetDataType<TEndpoints, TEndpoint, TMethod, "query">
                : GetDataType<TEndpoints, TEndpoint, TMethod, "json">
        }
    }

    Type Parameters

    // define the type on your `API` types:
    type Request = Api.Generate.RequestShortcuts<Endpoints>;

    // consume the type wherever in your app:
    type MyData = API.Request["get"]["my/endpoint"];