Skip to content

Instantly share code, notes, and snippets.

@kluu1
Created June 1, 2020 15:01
Show Gist options
  • Select an option

  • Save kluu1/a5f7d85f5cdf1758b6c5559b5d00ffac to your computer and use it in GitHub Desktop.

Select an option

Save kluu1/a5f7d85f5cdf1758b6c5559b5d00ffac to your computer and use it in GitHub Desktop.

Revisions

  1. kluu1 created this gist Jun 1, 2020.
    5 changes: 5 additions & 0 deletions example1.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    let myExampleNumber: number = 23;

    myExampleNumber = 'some number'; // This line will throw an error

    myExampleNumber = 5; // This line will work