kit
    Preparing search index...

    Type Alias ResultShortcuts<TEndpoints>

    ResultShortcuts: {
        [TMethod in RequestMethod]: {
            [TEndpoint in Extract<keyof TEndpoints, string>]: {
                fail: GetDataType<TEndpoints, TEndpoint, TMethod, "fail">;
                ok: GetDataType<TEndpoints, TEndpoint, TMethod, "ok">;
            }
        }
    }

    Type Parameters

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

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

    MyResult["ok"];
    ^
    MyResult["fail"];
    ^