Created
November 12, 2022 20:21
-
-
Save dioxmio/e72b4636821a022542dab0c7263c955e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
type Point = { | |
x: number, | |
y: number | |
}; | |
const origin = { | |
x: 0, | |
y: 0, | |
// ❌ Type '{ x: number; y: number; z: number; }' does not satisfy the expected type 'Point' | |
z: 0 | |
} satisfies Point; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment