mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
AngularJS: make IDirective.link() arguments optional
This commit is contained in:
12
angularjs/angular.d.ts
vendored
12
angularjs/angular.d.ts
vendored
@@ -748,12 +748,14 @@ declare module ng {
|
||||
) => any;
|
||||
controller?: any;
|
||||
controllerAs?: string;
|
||||
// A link function with no arguments is perfectly valid; the norm seems
|
||||
// to be passing the scope, element and attributes.
|
||||
link?:
|
||||
(scope: IScope,
|
||||
instanceElement: IAugmentedJQuery,
|
||||
instanceAttributes: IAttributes,
|
||||
controller: any,
|
||||
transclude: ITranscludeFunction
|
||||
(scope?: IScope,
|
||||
instanceElement?: IAugmentedJQuery,
|
||||
instanceAttributes?: IAttributes,
|
||||
controller?: any,
|
||||
transclude?: ITranscludeFunction
|
||||
) => void;
|
||||
name?: string;
|
||||
priority?: number;
|
||||
|
||||
Reference in New Issue
Block a user