I'd like to make the following comparison:
import { innerWidth } from 'svelte/reactivity/window';const breakPoint = 777;let screenIsBig: boolean = $derived(innerWidth >= breakPoint);
However, this produces an error:
Operator '>=' cannot be applied to types 'ReactiveValue<number | undefined>' and 'number'
I suspect, I'm just not familiar enough with TypeScript to understand the obvious solution to this. Can anyone with Svelte+TypeScript exeprience advise on the correct way to achieve something like this comparison?