forked from fanruan/fineui
Browse Source
Merge in VISUAL/fineui from ~DAILER/fineui:master to master * commit '943c10699263bfe3089f1158ef583b897721ee6c': update inject 描述 无jira任务 chore: 监听事件方法添加返回值,用来直接解除绑定 无JIRA任务 chore: 添加inject.js中的描述es6
Dailer|翠屏山最速下山传说
4 years ago
5 changed files with 61 additions and 7 deletions
@ -0,0 +1,47 @@ |
|||||||
|
type _module = (xtype: string, cls: any) => void; |
||||||
|
type _constant = (xtype: string, cls: any) => void; |
||||||
|
type _model = (xtype: string, cls: any) => void; |
||||||
|
type _store = (xtype: string, cls: any) => void; |
||||||
|
type _service = (xtype: string, cls: any) => void; |
||||||
|
type _provider = (xtype: string, cls: any) => void; |
||||||
|
|
||||||
|
interface _modules { |
||||||
|
getModule: (type: string) => any; |
||||||
|
getAllModules: () => any; |
||||||
|
} |
||||||
|
|
||||||
|
interface _constants { |
||||||
|
getConstant: (type: string) => any; |
||||||
|
} |
||||||
|
|
||||||
|
interface _models { |
||||||
|
getModel: (type: string, options?: any) => any; |
||||||
|
} |
||||||
|
|
||||||
|
interface _stores { |
||||||
|
getStore: (type: string, options?: any) => any; |
||||||
|
} |
||||||
|
|
||||||
|
interface _providers { |
||||||
|
getProvider: (type: string, options?: any) => any; |
||||||
|
} |
||||||
|
|
||||||
|
interface _services { |
||||||
|
getService: (type: string, options?: any) => any; |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
export type _inject = { |
||||||
|
module: _module; |
||||||
|
constant: _constant; |
||||||
|
model: _model; |
||||||
|
store: _store; |
||||||
|
provider: _provider; |
||||||
|
service: _service; |
||||||
|
Modules: _modules; |
||||||
|
Constants: _constants; |
||||||
|
Models: _models; |
||||||
|
Stores: _stores; |
||||||
|
Providers: _providers; |
||||||
|
Services: _services; |
||||||
|
} |
Loading…
Reference in new issue