diff --git a/types/angular-material/angular-material-tests.ts b/types/angular-material/angular-material-tests.ts index 06d98505ed..ad79cff2db 100644 --- a/types/angular-material/angular-material-tests.ts +++ b/types/angular-material/angular-material-tests.ts @@ -393,6 +393,6 @@ myApp.controller('StickyController', ($scope: TestScope, $mdSticky: ng.material. const stickyElement = angular.element(new Element()); const cloneStickyElement = stickyElement.clone(); - $mdSticky($scope, stickyElement); - $mdSticky($scope, stickyElement, cloneStickyElement); -}); \ No newline at end of file + $mdSticky($scope, stickyElement); + $mdSticky($scope, stickyElement, cloneStickyElement); +}); diff --git a/types/angular-material/index.d.ts b/types/angular-material/index.d.ts index e9263459f1..d77f5ae7ce 100644 --- a/types/angular-material/index.d.ts +++ b/types/angular-material/index.d.ts @@ -495,9 +495,6 @@ declare module 'angular' { configure(options: IProgressCircularConfig): void; } - interface IStickyService { - (scope: IScope, element: JQuery): void; - (scope: IScope, element: JQuery, elementClone: JQuery): void; - } + type IStickyService = (scope: IScope, element: JQuery, elementClone?: JQuery) => void; } }