Created
August 26, 2018 22:02
-
-
Save glaucia86/7d309810baf36f5efc8ac878e82c0c2a 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: 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