mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 13:27:15 +08:00
angular.d.ts: new interface IDirectiveFactory
Adds intellisense when constructing directive objects
This commit is contained in:
7
angularjs/angular.d.ts
vendored
7
angularjs/angular.d.ts
vendored
@@ -124,7 +124,7 @@ declare module ng {
|
||||
*/
|
||||
controller(name: string, inlineAnnotatedConstructor: any[]): IModule;
|
||||
controller(object : Object): IModule;
|
||||
directive(name: string, directiveFactory: Function): IModule;
|
||||
directive(name: string, directiveFactory: IDirectiveFactory): IModule;
|
||||
directive(name: string, inlineAnnotatedFunction: any[]): IModule;
|
||||
directive(object: Object): IModule;
|
||||
/**
|
||||
@@ -919,6 +919,11 @@ declare module ng {
|
||||
// and http://docs.angularjs.org/guide/directive
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
interface IDirectiveFactory {
|
||||
(...args: any[]): IDirective;
|
||||
}
|
||||
|
||||
|
||||
interface IDirective{
|
||||
compile?:
|
||||
(templateElement: IAugmentedJQuery,
|
||||
|
||||
Reference in New Issue
Block a user