From 53db5de738330b2bbea30d0f5fac1fd88a786afa Mon Sep 17 00:00:00 2001 From: David Paz Date: Fri, 9 Feb 2018 22:05:00 +0100 Subject: [PATCH] Fix errors in source code for stcikem --- types/jquery.stickem/index.d.ts | 4 ++-- types/jquery.stickem/jquery.stickem-tests.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/jquery.stickem/index.d.ts b/types/jquery.stickem/index.d.ts index 6b223805ec..50e759635e 100644 --- a/types/jquery.stickem/index.d.ts +++ b/types/jquery.stickem/index.d.ts @@ -40,12 +40,12 @@ interface StickemSettings { /** * Callback to execute when in stick state */ - onStick?: Function, + onStick?: () => void; /** * Callback to execute when getting out of stick state */ - onUnstick?: Function + onUnstick?: () => void; } interface JQuery { diff --git a/types/jquery.stickem/jquery.stickem-tests.ts b/types/jquery.stickem/jquery.stickem-tests.ts index 37fb586280..572bdf7773 100644 --- a/types/jquery.stickem/jquery.stickem-tests.ts +++ b/types/jquery.stickem/jquery.stickem-tests.ts @@ -16,4 +16,4 @@ jQuery('div').stickem({ container: '.stickem-container', stickClass: 'stickit', endStickClass: 'stickit-end' -}); \ No newline at end of file +});