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