Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RikkiGibson/96a80dc56ec2443f6ade7575a311182e to your computer and use it in GitHub Desktop.
Save RikkiGibson/96a80dc56ec2443f6ade7575a311182e to your computer and use it in GitHub Desktop.
interface Point {
row: number
column: number
someOtherShitThatAtomUses: idk
color: string
}
var doStuffWithPoint(point: { row: number, column: number}) {
...
}
var myPoint: Point = ...
doStuffWithPoint({ row: 10, column: 20})
doStuffWithPoint(myPoint)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment