@curveball/browser
Version:
Automatic API browser generator. A middleware that turns your JSON responses into HTML if accessed by a browser.
15 lines (14 loc) • 450 B
TypeScript
/**
* Note, this algorithm is taken from:
*
* https://github.com/defunctzombie/form-serialize/blob/master/LICENSE
*
* It's cleaned up, modernized and converted to Typescript, but the original
* is Copyright (c) 2013 Roman Shtylman and licensed under the MIT license.
*/
/**
* Serializes a form into html-json-forms format.
*
* https://www.w3.org/TR/html-json-forms/
*/
export declare function serializeJsonForm(form: HTMLFormElement): {};