diff --git a/README.markdown b/README.markdown index d69768a..7407517 100644 --- a/README.markdown +++ b/README.markdown @@ -67,6 +67,8 @@ version 1.0.4 if you require camel casing of names.* - Fix an issue (#2) where arrays longer than 2 resulted in incorrect values +## Known issues -[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/hongymagic/jquery.serializeobject/trend.png)](https://bitdeli.com/free "Bitdeli Badge") +- In rare cases, this won't work with old checkbox/hidden hack. See [this issue for more details](https://github.com/hongymagic/jQuery.serializeObject/issues/9). +[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/hongymagic/jquery.serializeobject/trend.png)](https://bitdeli.com/free "Bitdeli Badge") diff --git a/jquery.serializeObject.d.ts b/jquery.serializeObject.d.ts new file mode 100644 index 0000000..3aea456 --- /dev/null +++ b/jquery.serializeObject.d.ts @@ -0,0 +1,4 @@ + +interface JQuery { + serializeObject(): { [index: string]: string|string[] } +} diff --git a/package.json b/package.json index 2e3b0a0..b07a0b7 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "jQuery.serializeObject", - "version": "2.0.3", + "version": "2.0.4", "description": "A jQuery plugin to turn form data into JSON", "main": "jquery.serializeObject.js", + "types": "jquery.serializeObject.d.ts", "directories": { "test": "test" },