12 lines
247 B
TypeScript
12 lines
247 B
TypeScript
//// [untypedArgumentInLambdaExpression.ts]
|
|
declare function f(fn: (a: string) => string);
|
|
|
|
f((input): string => {
|
|
return "." + input;
|
|
});
|
|
|
|
|
|
//// [untypedArgumentInLambdaExpression.js]
|
|
f(function (input) {
|
|
return "." + input;
|
|
});
|