forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-serializer.d.ts
42 lines (31 loc) · 854 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/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
declare module 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;
}