@types/json-form-data
Advanced tools
Comparing version
@@ -1,4 +0,5 @@ | ||
// Type definitions for json-form-data 1.5 | ||
// Type definitions for json-form-data 1.7 | ||
// Project: https://github.com/hyperatom/json-form-data | ||
// Definitions by: Aaron Ross <https://github.com/superhawk610> | ||
// Kamil Socha <https://github.com/ksocha> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -12,2 +13,6 @@ | ||
interface InitialFormData { | ||
append: FormData['append']; | ||
} | ||
/** | ||
@@ -19,2 +24,3 @@ * Formatting options for modifying the final generated FormData object. | ||
* const defaultOpts = { | ||
* initialFormData: new FormData(), | ||
* showLeafArrayIndexes: true, | ||
@@ -33,2 +39,7 @@ * includeNullValues: false, | ||
/** | ||
* Existing form data which values will be appended to (default: `new FormData()`). | ||
* This can be used to support environments that do not have a global FormData object. | ||
*/ | ||
initialFormData?: InitialFormData; | ||
/** | ||
* Include index values in arrays (default: `true`). | ||
@@ -35,0 +46,0 @@ * |
{ | ||
"name": "@types/json-form-data", | ||
"version": "1.5.0", | ||
"version": "1.7.0", | ||
"description": "TypeScript definitions for json-form-data", | ||
@@ -11,2 +11,7 @@ "license": "MIT", | ||
"githubUsername": "superhawk610" | ||
}, | ||
{ | ||
"name": "Kamil Socha", | ||
"url": "https://github.com/ksocha", | ||
"githubUsername": "ksocha" | ||
} | ||
@@ -23,4 +28,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "97a565a85891eb3298c4531b8737be3107df2f690695c2dee6d0c77e8236e34f", | ||
"typesPublisherContentHash": "2b1e9ef04372ebb36bf9282c1537a47ba786d854d4c352e1e9db927259b9a873", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 28 Nov 2019 00:01:31 GMT | ||
* Last updated: Mon, 20 Jan 2020 20:44:56 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Aaron Ross (https://github.com/superhawk610). | ||
These definitions were written by Aaron Ross (https://github.com/superhawk610), and Kamil Socha (https://github.com/ksocha). |
7232
8.83%176
6.02%