UNPKG

declarations

Version:

[![npm version](https://badge.fury.io/js/declarations.svg)](https://www.npmjs.com/package/declarations)

43 lines (31 loc) 861 B
// Type definitions for jquery.serialize-object 2.5.0 // Project: https://github.com/macek/jquery-serialize-object // Definitions by: Florian Wagner <https://github.com/flqw> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference path="../jquery/jquery.d.ts"/> declare namespace FormSerializer { interface FormSerializerPatterns { validate: RegExp; key: RegExp; push: RegExp; fixed: RegExp; named: RegExp; } export var patterns: FormSerializerPatterns; } declare module "jquery-serialize-object" { export = FormSerializer; } declare module "form-serializer" { export = FormSerializer; } interface JQuery { /** * Serializes the selected form into a JavaScript object. */ serializeObject(): Object; /** * Serializes the selected form into JSON. */ serializeJSON(): string; }