From be319089e5efbe5b2ddd526fe16cbf9558d85d38 Mon Sep 17 00:00:00 2001 From: Jean-Michel DECORET Date: Thu, 8 Jun 2017 22:18:37 +0000 Subject: [PATCH] Fix Materialize-css ScrollFireOptions (#17044) * Fix Materialize-css ScrollFireOptions The callback is either a strng, or a real typescript callback. * Add parens --- types/materialize-css/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/materialize-css/index.d.ts b/types/materialize-css/index.d.ts index 12dbeb5aa0..2c43daf285 100644 --- a/types/materialize-css/index.d.ts +++ b/types/materialize-css/index.d.ts @@ -316,8 +316,9 @@ declare namespace Materialize { * The string function call that you want to make when the user scrolls to the threshold. * It will only be called once. * Example: 'console.log("hello, world!")'; + * or callback: () => { console.log('hello world'); } */ - callback?: string; + callback?: string | (() => void); } interface TabOptions {