Skip to content

Commit

Permalink
🎨 Widen resolver return type
Browse files Browse the repository at this point in the history
  • Loading branch information
elbywan committed Oct 16, 2017
1 parent 9d1b4c6 commit 6e2b299
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dist/bundle/wretch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/bundle/wretch.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/resolver.d.ts
Expand Up @@ -27,4 +27,4 @@ export declare type ResponseChain = {
internalError: (cb: (error: WretcherError) => void) => ResponseChain;
onAbort: (cb: (error: Error) => void) => ResponseChain;
};
export declare const resolver: (url: any) => (catchers?: Map<string | number, (error: WretcherError) => void>) => (resolvers: ((chain: ResponseChain) => Promise<any> | ResponseChain)[]) => (opts?: {}) => Promise<any> | ResponseChain;
export declare const resolver: (url: any) => (catchers?: Map<string | number, (error: WretcherError) => void>) => (resolvers: ((chain: ResponseChain) => ResponseChain & Promise<any>)[]) => (opts?: {}) => ResponseChain & Promise<any>;

0 comments on commit 6e2b299

Please sign in to comment.