-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
28 lines (26 loc) · 1.07 KB
/
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
interface EasyPolymer {
define(name: string): (target: Function) => void;
define(target: Function): void;
template(tpl: string): (target: Function) => void;
prop(proto: any, key: string): void;
string(proto: any, key: string): void;
number(proto: any, key: string): void;
boolean(proto: any, key: string): void;
date(proto: any, key: string): void;
object(proto: any, key: string): void;
array(proto: any, key: string): void;
attr(proto: any, key: string): void;
set(value: any): (proto: any, key: string) => void;
readOnly(value: any): (proto: any, key: string) => void;
notify(proto: any, key: string): void;
computed(type: FunctionConstructor): (proto: any, key: string) => void;
computed(type: FunctionConstructor, props: string): (proto: any, key: string) => void;
computed(props: string): (proto: any, key: string) => void;
computed(proto: any, key: string): void;
observe(props: string): (proto: any, key: string) => void;
observe(proto: any, key: string): void;
}
declare module "easy-polymer" {
export = ESP;
}
declare var ESP: EasyPolymer;