mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-06 12:30:10 +08:00
Add typing for bind() which is also needed for demo
This commit is contained in:
1 parent
6c2589a633
commit
396000ead5
2 files changed
+23
-2
No files matched your search
Vendored
+18
-1
@@ -602,4 +602,21 @@ declare module "angular2/angular2" {
|
||||
*
|
||||
*/
|
||||
function Switch(): void;
|
||||
}
|
||||
}
|
||||
|
||||
declare module "angular2/di" {
|
||||
/**
|
||||
* Provides an API for imperatively constructing {@link Binding}s.
|
||||
*
|
||||
* This is only relevant for JavaScript. See {@link BindingBuilder}.
|
||||
*
|
||||
* ## Example
|
||||
*
|
||||
* ```javascript
|
||||
* bind(MyInterface).toClass(MyClass)
|
||||
*
|
||||
* ```
|
||||
*
|
||||
*/
|
||||
function bind(token: any): any;
|
||||
}
|
||||
Reference in new issue
Block a user