@rest-hooks/endpoint
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -6,2 +6,11 @@ # Change Log | ||
## <small>0.4.2 (2020-07-22)</small> | ||
* fix: Remove broken type ([09e8268](https://github.com/coinbase/rest-hooks/commit/09e8268)) | ||
* fix: Remove broken type ([316e5a0](https://github.com/coinbase/rest-hooks/commit/316e5a0)) | ||
## <small>0.4.1 (2020-07-20)</small> | ||
@@ -8,0 +17,0 @@ |
@@ -35,15 +35,2 @@ /* eslint-disable @typescript-eslint/ban-types */ | ||
export type ExtendEndpoint< | ||
E extends EndpointInstance<any, any, any>, | ||
O extends EndpointExtendOptions<K, any, any> | ||
> = EndpointInstance< | ||
'fetch' extends keyof typeof options ? typeof options['fetch'] : E['fetch'], | ||
'schema' extends keyof typeof options | ||
? typeof options['schema'] | ||
: E['_schema'], | ||
'sideEffect' extends keyof typeof options | ||
? typeof options['sideEffect'] | ||
: E['sideEffect'] | ||
>; | ||
/** | ||
@@ -50,0 +37,0 @@ * Creates a new function. |
export type { EndpointInterface, ReadEndpoint, MutateEndpoint, IndexInterface, IndexParams, ArrayElement, } from './interface'; | ||
export type { EndpointOptions, EndpointInstance, ExtendEndpoint, } from './endpoint'; | ||
export type { EndpointOptions, EndpointInstance } from './endpoint'; | ||
export type { EndpointExtraOptions, FetchFunction, OptimisticUpdateParams, UpdateFunction, } from './types'; | ||
@@ -4,0 +4,0 @@ export type { ResolveType, EndpointParam, InferReturn } from './utility'; |
export { default as Endpoint } from './endpoint'; | ||
export { default as Index } from './indexEndpoint'; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6WyJkZWZhdWx0IiwiRW5kcG9pbnQiLCJJbmRleCJdLCJtYXBwaW5ncyI6IkFBcUJBLFNBQVNBLE9BQU8sSUFBSUMsUUFBcEIsUUFBb0MsWUFBcEM7QUFDQSxTQUFTRCxPQUFPLElBQ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UFqQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB0eXBlIHtcbiAgRW5kcG9pbnRJbnRlcmZhY2UsXG4gIFJlYWRFbmRwb2ludCxcbiAgTXV0YXRlRW5kcG9pbnQsXG4gIEluZGV4SW50ZXJmYWNlLFxuICBJbmRleFBhcmFtcyxcbiAgQXJyYXlFbGVtZW50LFxufSBmcm9tICcuL2ludGVyZmFjZSc7XG5leHBvcnQgdHlwZSB7IEVuZHBvaW50T3B0aW9ucywgRW5kcG9pbnRJbnN0YW5jZSB9IGZyb20gJy4vZW5kcG9pbnQnO1xuZXhwb3J0IHR5cGUge1xuICBFbmRwb2ludEV4dHJhT3B0aW9ucyxcbiAgRmV0Y2hGdW5jdGlvbixcbiAgT3B0aW1pc3RpY1VwZGF0ZVBhcmFtcyxcbiAgVXBkYXRlRnVuY3Rpb24sXG59IGZyb20gJy4vdHlwZXMnO1xuZXhwb3J0IHR5cGUgeyBSZXNvbHZlVHlwZSwgRW5kcG9pbnRQYXJhbSwgSW5mZXJSZXR1cm4gfSBmcm9tICcuL3V0aWxpdHknO1xuXG5leHBvcnQgeyBkZWZhdWx0IGFzIEVuZHBvaW50IH0gZnJvbSAnLi9lbmRwb2ludCc7XG5leHBvcnQgeyBkZWZhdWx0IGFzIEluZGV4IH0gZnJvbSAnLi9pbmRleEVuZHBvaW50JztcbiJdfQ== |
{ | ||
"name": "@rest-hooks/endpoint", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Declarative Network Interface Definitions", | ||
@@ -57,3 +57,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "c149f4a6f2015ee3b21ee4b9b7991ece79b91c25" | ||
"gitHead": "0bb299101b7fea7dbadbbd3dab366098a028e240" | ||
} |
@@ -35,15 +35,2 @@ /* eslint-disable @typescript-eslint/ban-types */ | ||
export type ExtendEndpoint< | ||
E extends EndpointInstance<any, any, any>, | ||
O extends EndpointExtendOptions<K, any, any> | ||
> = EndpointInstance< | ||
'fetch' extends keyof typeof options ? typeof options['fetch'] : E['fetch'], | ||
'schema' extends keyof typeof options | ||
? typeof options['schema'] | ||
: E['_schema'], | ||
'sideEffect' extends keyof typeof options | ||
? typeof options['sideEffect'] | ||
: E['sideEffect'] | ||
>; | ||
/** | ||
@@ -50,0 +37,0 @@ * Creates a new function. |
@@ -9,8 +9,4 @@ export type { | ||
} from './interface'; | ||
export type { EndpointOptions, EndpointInstance } from './endpoint'; | ||
export type { | ||
EndpointOptions, | ||
EndpointInstance, | ||
ExtendEndpoint, | ||
} from './endpoint'; | ||
export type { | ||
EndpointExtraOptions, | ||
@@ -17,0 +13,0 @@ FetchFunction, |
Sorry, the diff of this file is not supported yet
70847
976