Skip to content

Instantly share code, notes, and snippets.

@glaucia86
Created August 26, 2018 22:07
Show Gist options
  • Save glaucia86/f37346b0b15625d0bd24c06c8a3d514f to your computer and use it in GitHub Desktop.
Save glaucia86/f37346b0b15625d0bd24c06c8a3d514f to your computer and use it in GitHub Desktop.
/**
* Arquivo: optional-elements.ts
* Author: Glaucia Lemos
* Data: 23/08/2018
*
*/
let teste: [number, string?, boolean?];
teste = [42, 'chocolate', true];
teste = [42, 'chocolate'];
teste = [42]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment