Skip to content

Instantly share code, notes, and snippets.

@AitorAlejandro
Created June 5, 2022 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AitorAlejandro/8d73832e8463b96e1e878c6f8dfa2535 to your computer and use it in GitHub Desktop.
Save AitorAlejandro/8d73832e8463b96e1e878c6f8dfa2535 to your computer and use it in GitHub Desktop.
Named tuples TS
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