mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 21:12:38 +08:00
43 lines
847 B
TypeScript
43 lines
847 B
TypeScript
// 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 types="jquery"/>
|
|
|
|
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;
|
|
|
|
}
|