UNPKG

tra-typed-fetch

Version:

A package that implements common http requests using fetch, allowing for typed responses with typescript

13 lines (12 loc) 401 B
export var RequestMethod; (function (RequestMethod) { RequestMethod['Get'] = 'GET'; RequestMethod['Destroy'] = 'DELETE'; RequestMethod['Patch'] = 'PATCH'; RequestMethod['Put'] = 'PUT'; RequestMethod['Post'] = 'POST'; })(RequestMethod || (RequestMethod = {})); export var RequestParams; (function (RequestParams) { RequestParams['Body'] = 'body'; })(RequestParams || (RequestParams = {}));