24 lines
500 B
JavaScript
24 lines
500 B
JavaScript
|
//// [noImplicitAnyModule.ts]
|
||
|
|
||
|
declare module Module {
|
||
|
interface Interface {
|
||
|
// Should return error for implicit any on return type.
|
||
|
new ();
|
||
|
}
|
||
|
|
||
|
class Class {
|
||
|
// Should return error for implicit `any` on parameter.
|
||
|
public f(x): any;
|
||
|
public g(x: any);
|
||
|
|
||
|
// Should not return error at all.
|
||
|
private h(x);
|
||
|
}
|
||
|
|
||
|
// Should return error for implicit any on return type.
|
||
|
function f(x: number);
|
||
|
}
|
||
|
|
||
|
|
||
|
//// [noImplicitAnyModule.js]
|