Created
August 26, 2018 22:00
-
-
Save glaucia86/da9bf12a1031a10174b86782aab41d4e to your computer and use it in GitHub Desktop.
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
| /** | |
| * Arquivo: tuple-basic.ts | |
| * Author: Glaucia Lemos | |
| * Data: 23/08/2018 | |
| */ | |
| // Aqui estamos declarando x com um tipo 'tupla' | |
| let x: [string, number]; | |
| // Aqui não haverá erro! | |
| x = ['Oi! Tudo bem?', 10]; | |
| // Já aqui.... Not okay! :( | |
| x = [10, 'Oi Tudo bem?']; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment