14 lines
357 B
TypeScript
14 lines
357 B
TypeScript
|
// @sourcemap: true
|
||
|
var greetings = 0;
|
||
|
function greet(greeting: string): number {
|
||
|
greetings++;
|
||
|
return greetings;
|
||
|
}
|
||
|
function greet2(greeting: string, n = 10, x?: string, ...restParams: string[]): number {
|
||
|
greetings++;
|
||
|
return greetings;
|
||
|
}
|
||
|
function foo(greeting: string, n = 10, x?: string, ...restParams: string[])
|
||
|
{
|
||
|
return;
|
||
|
}
|