From d559e87ca2f93274df6165f388c03d95c0360678 Mon Sep 17 00:00:00 2001 From: Dona278 Date: Fri, 9 Feb 2018 11:28:32 +0100 Subject: [PATCH] Fixed lint errors --- types/angular-material/angular-material-tests.ts | 6 +++--- types/angular-material/index.d.ts | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) 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; } }