Skip to content
This repository was archived by the owner on Feb 17, 2024. It is now read-only.

Commit 1e21a85

Browse files
committed
chore: update typings
1 parent bac807a commit 1e21a85

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

typings/angular2/angular2.d.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -647,8 +647,8 @@ declare module "angular2/angular2" {
647647
var ___esModule: any;
648648
var ViewRef: any;
649649
var ProtoViewRef: any;
650-
var ViewContainerRef: any;
651-
var ElementRef: any;
650+
class ViewContainerRef {}
651+
class ElementRef {}
652652
var AncestorAnnotation: any;
653653
var ParentAnnotation: any;
654654
interface OnChange {}
@@ -666,8 +666,14 @@ declare module "angular2/angular2" {
666666
interface NativeShadowDomStrategy {}
667667
interface EmulatedScopedShadowDomStrategy {}
668668
interface EmulatedUnscopedShadowDomStrategy {}
669-
interface ComponentRef {}
670-
interface DynamicComponentLoader {}
669+
interface ComponentRef {
670+
instance: any;
671+
dispose(): void;
672+
}
673+
class DynamicComponentLoader {
674+
loadIntoNewLocation(type: any, b: any, c: any, d?: any): Promise<ComponentRef>;
675+
loadNextToExistingLocation(a: any, b: any, c: any): Promise<ComponentRef>;
676+
}
671677
var ComponentAnnotation: any;
672678
var DirectiveAnnotation: any;
673679
var onDestroy: any;
@@ -723,7 +729,9 @@ declare module "angular2/di" {
723729
*
724730
*/
725731
function bind(token: any): any;
726-
var Injector: any;
732+
class Injector {
733+
resolveAndCreateChild(bindings: [any]): Injector;
734+
}
727735
var Binding: any;
728736
var ResolvedBinding: any;
729737
var Dependency: any;

0 commit comments

Comments
 (0)