diff --git a/angularjs/angular-1.0.d.ts b/angularjs/angular-1.0.d.ts index ce996c4e7a..52735c9bdf 100755 --- a/angularjs/angular-1.0.d.ts +++ b/angularjs/angular-1.0.d.ts @@ -671,15 +671,15 @@ declare module ng { interface IDirective{ priority?: number; - template?: string; - templateUrl?: string; + template?: any; + templateUrl?: any; replace?: boolean; transclude?: any; restrict?: string; scope?: any; link?: Function; compile?: Function; - controller?: Function; + controller?: any; } /////////////////////////////////////////////////////////////////////////// diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index c6279bdeea..fe3e986faf 100755 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -640,16 +640,29 @@ declare module ng { /////////////////////////////////////////////////////////////////////////// interface IDirective{ + compile?: + (templateElement: any, + templateAttributes: IAttributes, + transclude: (scope: IScope, cloneLinkingFn: Function) => void + ) => any; + controller?: (...injectables: any[]) => void; + controllerAs?: string; + link?: + (scope: IScope, + instanceElement: any, + instanceAttributes: IAttributes, + controller: any + ) => void; + name?: string; priority?: number; - template?: any; - templateUrl?: any; replace?: boolean; - transclude?: any; + require?: string[]; restrict?: string; scope?: any; - link?: Function; - compile?: Function; - controller?: any; + template?: any; + templateUrl?: any; + terminal?: boolean; + transclude?: any; } ///////////////////////////////////////////////////////////////////////////