-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
41 lines (35 loc) · 1007 Bytes
/
index.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
// Fuck . Fuck suck TypeScript! Fuck you TypeScript!
// Fuck . Fuck suck TypeScript! Fuck you TypeScript!
// Fuck . Fuck suck TypeScript! Fuck you TypeScript!
type CubecJsFromOptions = {
[x: string]: any;
id: string;
name: string;
plugins: any[];
render?: string|any;
}
type CubecJsFromPluginOptions = {
[x: string]: any;
type: string;
description: string;
render: Function;
init?: Function;
}
type FuckTypeScript = Function;
// Fuck . Fuck suck TypeScript! Fuck you TypeScript!
declare class CubecJsForm {
constructor(root: HTMLElement|any, options: CubecJsFromOptions);
static registerPlugin(options: CubecJsFromPluginOptions) : any;
getData: FuckTypeScript;
setData: FuckTypeScript;
validate: FuckTypeScript;
scrollTo: FuckTypeScript;
reset: FuckTypeScript;
clearStore: FuckTypeScript;
updatePlugin: FuckTypeScript;
getPlugin: FuckTypeScript;
submit: FuckTypeScript;
destroy: FuckTypeScript;
beforeSubmit: FuckTypeScript;
}
export default CubecJsForm;