@types/react-request
Advanced tools
@@ -6,2 +6,3 @@ // Type definitions for react-request 3.1 | ||
| // Jonathan Ly <https://github.com/jonathanly> | ||
| // Alberto Juan <https://github.com/albertojuanl> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -34,5 +35,8 @@ // TypeScript Version: 2.9 | ||
| export type ResponseType = 'arrayBuffer' | 'blob' | 'formData' | 'json' | 'text'; | ||
| export interface FetchProps<T = any> extends FetchRequestProps { | ||
| afterFetch?: (args: FetchResponse<T>) => void; | ||
| transformData?: (data: any) => T; | ||
| responseType?: ResponseType; | ||
| children?: (renderProps: RenderProps<T>) => React.ReactNode; | ||
@@ -39,0 +43,0 @@ } |
| { | ||
| "name": "@types/react-request", | ||
| "version": "3.1.2", | ||
| "version": "3.1.3", | ||
| "description": "TypeScript definitions for react-request", | ||
@@ -21,2 +21,7 @@ "license": "MIT", | ||
| "githubUsername": "jonathanly" | ||
| }, | ||
| { | ||
| "name": "Alberto Juan", | ||
| "url": "https://github.com/albertojuanl", | ||
| "githubUsername": "albertojuanl" | ||
| } | ||
@@ -35,4 +40,4 @@ ], | ||
| }, | ||
| "typesPublisherContentHash": "78da09abe66e9652f4f7b808e53ba8a52a50ef0fed91adc95b37feb88c251718", | ||
| "typesPublisherContentHash": "4f17c1a1c205ccf27869ec6d23e4dd891dcf8ef22dd9bfd4bf81d4fdf5473fd5", | ||
| "typeScriptVersion": "2.9" | ||
| } |
@@ -11,3 +11,3 @@ # Installation | ||
| Additional Details | ||
| * Last updated: Wed, 03 Apr 2019 01:41:07 GMT | ||
| * Last updated: Wed, 10 Apr 2019 17:33:40 GMT | ||
| * Dependencies: @types/react | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
| # Credits | ||
| These definitions were written by Danny Cochran <https://github.com/dannycochran>, Angus Fretwell <https://github.com/angusfretwell>, Jonathan Ly <https://github.com/jonathanly>. | ||
| These definitions were written by Danny Cochran <https://github.com/dannycochran>, Angus Fretwell <https://github.com/angusfretwell>, Jonathan Ly <https://github.com/jonathanly>, Alberto Juan <https://github.com/albertojuanl>. |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
5353
7.79%64
4.92%