@rest-hooks/endpoint
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,2 +6,10 @@ # Change Log | ||
### [1.0.1](https://github.com/coinbase/rest-hooks/compare/@rest-hooks/endpoint@1.0.0...@rest-hooks/endpoint@1.0.1) (2021-01-24) | ||
**Note:** Version bump only for package @rest-hooks/endpoint | ||
## 1.0.0 (2021-01-19) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@rest-hooks/endpoint", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Declarative Network Interface Definitions", | ||
@@ -55,5 +55,5 @@ "sideEffects": false, | ||
"@babel/runtime": "^7.12.0", | ||
"@rest-hooks/normalizr": "^6.0.0" | ||
"@rest-hooks/normalizr": "^6.0.1" | ||
}, | ||
"gitHead": "987d81d74abe240bbc5fcc08d4d9fd18a85b12fd" | ||
"gitHead": "a031da2ace9ba826dd1acc50b50cec4d42cc6a85" | ||
} |
@@ -7,7 +7,5 @@ import { Schema } from '@rest-hooks/normalizr'; | ||
/** What the function's promise resolves to */ | ||
export type ResolveType<E extends (...args: any) => any> = ReturnType< | ||
E | ||
> extends Promise<infer R> | ||
? R | ||
: never; | ||
export type ResolveType< | ||
E extends (...args: any) => any | ||
> = ReturnType<E> extends Promise<infer R> ? R : never; | ||
@@ -14,0 +12,0 @@ /** Fallback to schema if fetch function isn't defined */ |
Sorry, the diff of this file is not supported yet
97258
1366
Updated@rest-hooks/normalizr@^6.0.1