Skip to content

How to import types from valtio? #971

Answered by overthemike
teetotum asked this question in Q&A
Discussion options

You must be logged in to vote

valtio doesn't export the type you're looking for. If you want to make your own:

type Path = (string | symbol)[]
type Op =
  | [op: 'set', path: Path, value: unknown, prevValue: unknown]
  | [op: 'delete', path: Path, prevValue: unknown]

Created an issue to have this looked into: #972

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by teetotum
Comment options

You must be logged in to vote
2 replies
@teetotum
Comment options

@dai-shi
Comment options

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