Closed cycle4passion closed 2 months ago
I am no typescript wizard to say the least, and had red squiggle everywhere.
Looking in the node modules types for svelte-persisted-store, shouldn't the Persisted type be exported?
for use like...
const books: Persisted<BookType[]> = persisted("books", []);
Hi @cycle4passion!
what about:
const books = persisted<BookType[]>("books", [])
But yeah, I think it should be exported, PR incoming.
I am no typescript wizard to say the least, and had red squiggle everywhere.
Looking in the node modules types for svelte-persisted-store, shouldn't the Persisted type be exported?
for use like...