mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 18:43:21 +08:00
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:
committed by
Mohamed Hegazy
parent
b3212da01e
commit
be319089e5
3
types/materialize-css/index.d.ts
vendored
3
types/materialize-css/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user