mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 02:42:27 +08:00
fix(types): allow falsy values
This commit is contained in:
parent
189a2296c4
commit
f1cb95d95e
@ -205,7 +205,7 @@ export class TypedBasicWidget<T extends TypedComponent<any>> extends TypedCompon
|
|||||||
*/
|
*/
|
||||||
doRender() {}
|
doRender() {}
|
||||||
|
|
||||||
toggleInt(show: boolean) {
|
toggleInt(show: boolean | null | undefined) {
|
||||||
this.$widget.toggleClass("hidden-int", !show);
|
this.$widget.toggleClass("hidden-int", !show);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user