Skip to content

Commit

Permalink
🏭 Highly experimental perfs function.
Browse files Browse the repository at this point in the history
  • Loading branch information
elbywan committed Oct 6, 2017
1 parent d12e29c commit 6fa1d29
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 11 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.

3 changes: 2 additions & 1 deletion dist/resolver.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export declare type WretcherError = Error & {
json?: any;
};
export declare const resolver: (url: any) => (catchers?: Map<number, (error: WretcherError) => void>) => (opts?: {}) => {
res: <Result = Response>(cb?: (type: void) => Result) => Promise<Result>;
res: <Result = Response>(cb?: (type: Response) => Result) => Promise<Result>;
json: <Result = {
[key: string]: any;
}>(cb?: (type: {
Expand All @@ -15,6 +15,7 @@ export declare const resolver: (url: any) => (catchers?: Map<number, (error: Wre
formData: <Result = FormData>(cb?: (type: FormData) => Result) => Promise<Result>;
arrayBuffer: <Result = ArrayBuffer>(cb?: (type: ArrayBuffer) => Result) => Promise<Result>;
text: <Result = string>(cb?: (type: string) => Result) => Promise<Result>;
perfs: (cb?: (type: any) => void) => any;
error: (code: number, cb: any) => any;
badRequest: (cb: (error: WretcherError) => void) => any;
unauthorized: (cb: (error: WretcherError) => void) => any;
Expand Down
18 changes: 18 additions & 0 deletions dist/resolver.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/resolver.js.map

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

Loading

0 comments on commit 6fa1d29

Please sign in to comment.