-
-
Save ycmjason/9c134a8a7232ec500d6ce2b0c26b5fcd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const r = reactive({ a: 3 }) // r is of type `{ a: number }` | |
r.a = 5 | |
r.b // this will throw a type error as `b` is not a key of `{ a: number }` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment