// 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"]; Copy
// 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"];
Example