Files
tsgo/testdata/baselines/reference/submodule/conformance/parametersWithNoAnnotationAreAny.js

55 lines
864 B
TypeScript

//// [tests/cases/conformance/types/objectTypeLiteral/callSignatures/parametersWithNoAnnotationAreAny.ts] ////
//// [parametersWithNoAnnotationAreAny.ts]
function foo(x) { return x; }
var f = function foo(x) { return x; }
var f2 = (x) => x;
var f3 = <T>(x) => x;
class C {
foo(x) {
return x;
}
}
interface I {
foo(x);
foo2(x, y);
}
var a: {
foo(x);
}
var b = {
foo(x) {
return x;
},
a: function foo(x) {
return x;
},
b: (x) => x
}
//// [parametersWithNoAnnotationAreAny.js]
"use strict";
function foo(x) { return x; }
var f = function foo(x) { return x; };
var f2 = (x) => x;
var f3 = (x) => x;
class C {
foo(x) {
return x;
}
}
var a;
var b = {
foo(x) {
return x;
},
a: function foo(x) {
return x;
},
b: (x) => x
};