forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.uniform.d.ts
55 lines (50 loc) · 1.38 KB
/
jquery.uniform.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
43
44
45
46
47
48
49
50
51
52
53
54
55
// Type definitions for Uniform.js
// Project: https://github.com/pixelmatrix/uniform
// Definitions by: flyfishMT <https://github.com/flyfishMT/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
interface UniformCoreOptions {
activeClass?: string;
autoHide?: boolean;
buttonClass?: string;
checkboxClass?: string;
checkedClass?: string;
disabledClass?: string;
eventNamespace?: string;
fileButtonClass?: string;
fileButtonHtml?: string;
fileClass?: string;
fileDefaultHtml?: string;
filenameClass?: string;
focusClass?: string;
hoverClass?: string;
idPrefix?: string;
inputAddTypeAsClass?: boolean;
inputClass?: string;
radioClass?: string;
resetDefaultHtml?: string;
resetSelector?: any;
selectAutoWidth?: boolean;
selectClass?: string;
selectMultiClass?: string;
submitDefaultHtml?: string;
textareaClass?: string;
useID?: boolean;
wrapperClass?: string;
}
interface UniformOptions extends UniformCoreOptions {
[option: string]: any;
}
interface Uniform {
(options?: UniformOptions): JQuery;
update(elemOrSelector?: any): void;
restore(elemOrSelector?: any): void;
elements: JQuery[];
defaults: UniformOptions;
}
interface JQueryStatic {
uniform: Uniform;
}
interface JQuery {
uniform: Uniform;
}