Skip to content

Instantly share code, notes, and snippets.

@kyleparisi
Last active January 28, 2021 20:13
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 kyleparisi/db5bde448d05727505e2f70bb7aaec53 to your computer and use it in GitHub Desktop.
Save kyleparisi/db5bde448d05727505e2f70bb7aaec53 to your computer and use it in GitHub Desktop.

Typescript Notes

error TS1036: Statements are not allowed in ambient contexts === erronious semi colon (very human)

Doesn't actually make type safe code. If you do spread operators or destructuring you are doomed.

What would make typescript useful is if it removed the need for ternary statements for property accessors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment