Created
June 5, 2022 20:57
-
-
Save AitorAlejandro/8d73832e8463b96e1e878c6f8dfa2535 to your computer and use it in GitHub Desktop.
Named tuples TS
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 Point2d = [x: number, y: number]; | |
type Point3d = [x: number, y: number, z: number]; | |
const point: Point2d = [1, 2]; // the IDE will help you showing which is x and y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment