Skip to content

Instantly share code, notes, and snippets.

@glaucia86
Created August 26, 2018 22:02
Show Gist options
  • Select an option

  • Save glaucia86/7d309810baf36f5efc8ac878e82c0c2a to your computer and use it in GitHub Desktop.

Select an option

Save glaucia86/7d309810baf36f5efc8ac878e82c0c2a to your computer and use it in GitHub Desktop.
/**
* Arquivo: tuplas-rest-parameters.ts
* Author: Glaucia Lemos
* Data: 23/08/2018
*/
// Aqui um exemplo de declaração de expressão com uso parâmetros rest com Tuplas
declare function foo(...args: [number, string, boolean]): void;
// Aqui o equivalente a declaração da função acima! :)
declare function foo(args_0: number, args_1: string, args_2: boolean): void;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment