Skip to content

What is the easiest way to infer a store’s type in TypeScript? #234

Answered by ai
Zegnat asked this question in Q&A
Discussion options

You must be logged in to vote

We already have StoreValue<Store> type helper in library exports

https://github.com/nanostores/nanostores/blob/main/map/index.d.ts#L23

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Zegnat
Comment options

@ai
Comment options

@ai
Comment options

@Zegnat
Comment options

Answer selected by Zegnat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants