Chore: Improve typing
This commit is contained in:
parent
d62c56bbe1
commit
f77a06f317
1 changed files with 2 additions and 2 deletions
|
@ -1,11 +1,11 @@
|
|||
<script lang="ts">
|
||||
import { UIEventSource } from "../../Logic/UIEventSource"
|
||||
import { Store } from "../../Logic/UIEventSource";
|
||||
import { onDestroy } from "svelte"
|
||||
|
||||
/**
|
||||
* For some stupid reason, it is very hard to let {#if} work together with UIEventSources, so we wrap then here
|
||||
*/
|
||||
export let condition: UIEventSource<boolean>
|
||||
export let condition: Store<boolean>
|
||||
let _c = condition.data
|
||||
onDestroy(
|
||||
condition.addCallback((c) => {
|
||||
|
|
Loading…
Reference in a new issue