forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-serializer.d.ts
42 lines (31 loc) · 861 Bytes
/
form-serializer.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// 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;
}