mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
angularjs revert marking arguments for link function as optional
This commit is contained in:
Vendored
+5
-7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user