Fix Materialize-css ScrollFireOptions (#17044)

* Fix Materialize-css ScrollFireOptions

The callback is either a strng, or a real typescript callback.

* Add parens
This commit is contained in:
Jean-Michel DECORET
2017-06-08 22:18:37 +00:00
committed by Mohamed Hegazy
parent b3212da01e
commit be319089e5

View File

@@ -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 {