angularjs revert marking arguments for link function as optional

This commit is contained in:
basarat
2014-01-31 23:45:44 +11:00
parent 45d36a4a78
commit 7ddbd98419

View File

@@ -748,14 +748,12 @@ 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;