zsmj1994
4 years ago
2 changed files with 50 additions and 2 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