39 lines
No EOL
1,015 B
TypeScript
39 lines
No EOL
1,015 B
TypeScript
//// [sourceMapValidationFunctions.ts]
|
|
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;
|
|
}
|
|
|
|
//// [sourceMapValidationFunctions.js]
|
|
var greetings = 0;
|
|
function greet(greeting) {
|
|
greetings++;
|
|
return greetings;
|
|
}
|
|
function greet2(greeting, n, x) {
|
|
if (n === void 0) { n = 10; }
|
|
var restParams = [];
|
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
restParams[_i - 3] = arguments[_i];
|
|
}
|
|
greetings++;
|
|
return greetings;
|
|
}
|
|
function foo(greeting, n, x) {
|
|
if (n === void 0) { n = 10; }
|
|
var restParams = [];
|
|
for (var _i = 3; _i < arguments.length; _i++) {
|
|
restParams[_i - 3] = arguments[_i];
|
|
}
|
|
return;
|
|
}
|
|
//# sourceMappingURL=sourceMapValidationFunctions.js.map
|