-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtypings.d.ts
18 lines (17 loc) · 852 Bytes
/
typings.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
declare function extend(constructor: () => void): () => FunctionConstructor
declare function require(param:string):any;
declare const lang: {[key:string]: string};
declare const SMF: any;
declare const Device: any;
declare const global: any;
declare const alert: any;
type StyleContextDispatch = {
dispatch: (action: { [key: string]: any }) => void;
}
type StyleContextAddChild = {
addChild(child: View, name?: string, classNames?: string, userProps?: { [key: string]: any; }, defaultClassNames?: string): void;
}
type StyleContextComponent = StyleContextAddChild & StyleContextDispatch;
type StyleContextComponentType<T> = T & StyleContextAddChild & StyleContextDispatch;
type StyleContextComponentWithDispatch<T> = T & StyleContextDispatch;
type componentContextPatch = <T = any>(component: T, name: string) => StyleContextComponentType<T>;