Releases: pearofducks/svelte-match-media
Releases · pearofducks/svelte-match-media
Fix TS types
Previously setup
and createMedia
were (mis)typed as returning another function. This has been corrected and the types file has been cleaned up to (hopefully) be a bit more understandable.
Add `createMedia` export
This release changes nothing about existing imports, and only adds one new import createMedia
. This function will create an entirely new media
object - which both aids uses who want to avoid the live-binding export, as well as if users want to separate their queries into different stores.
Add Typescript definition
v1.1.0 1.1.0