1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(6,20): error TS7006: Parameter 'x' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(12,20): error TS7006: Parameter 'x' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(12,23): error TS7006: Parameter 'y' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(12,26): error TS7006: Parameter 'z' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(15,20): error TS7006: Parameter 'x' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(15,31): error TS7006: Parameter 'z' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(18,20): error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(21,20): error TS7006: Parameter 'x' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(21,23): error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(24,20): error TS7006: Parameter 'x1' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(25,32): error TS7006: Parameter 'y2' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(26,20): error TS7006: Parameter 'x3' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(26,24): error TS7006: Parameter 'y3' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(32,18): error TS7006: Parameter 'x' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(35,18): error TS7006: Parameter 'x' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(35,21): error TS7006: Parameter 'y' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(35,24): error TS7006: Parameter 'z' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(38,18): error TS7006: Parameter 'x' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(38,29): error TS7006: Parameter 'z' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(41,18): error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(44,18): error TS7006: Parameter 'x' implicitly has an 'any' type.
tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts(44,21): error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
==== tests/cases/compiler/noImplicitAnyParametersInAmbientModule.ts (22 errors) ====
declare module D_M {
// No implicit-'any' errors.
function dm_f1(): void;
// No implicit-'any' errors.
function dm_f2(x): void;
~
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
// No implicit-'any' errors.
function dm_f3(x: any): void;
// No implicit-'any' errors.
function dm_f4(x, y, z): void;
~
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
~
!!! error TS7006: Parameter 'y' implicitly has an 'any' type.
~
!!! error TS7006: Parameter 'z' implicitly has an 'any' type.
// No implicit-'any' errors.
function dm_f5(x, y: any, z): void;
~
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
~
!!! error TS7006: Parameter 'z' implicitly has an 'any' type.
// No implicit-'any' errors.
function dm_f6(...r): void;
~~~~
!!! error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
// No implicit-'any' errors.
function dm_f7(x, ...r): void;
~
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
~~~~
!!! error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
// No implicit-'any' errors.
function dm_f8(x1, y1: number): any;
~~
!!! error TS7006: Parameter 'x1' implicitly has an 'any' type.
function dm_f8(x2: string, y2): any;
~~
!!! error TS7006: Parameter 'y2' implicitly has an 'any' type.
function dm_f8(x3, y3): any;
~~
!!! error TS7006: Parameter 'x3' implicitly has an 'any' type.
~~
!!! error TS7006: Parameter 'y3' implicitly has an 'any' type.
// No implicit-'any' errors.
var dm_f9: () => string;
// No implicit-'any' errors.
var dm_f10: (x) => string;
~
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
// No implicit-'any' errors.
var dm_f11: (x, y, z) => string;
~
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
~
!!! error TS7006: Parameter 'y' implicitly has an 'any' type.
~
!!! error TS7006: Parameter 'z' implicitly has an 'any' type.
// No implicit-'any' errors.
var dm_f12: (x, y: any, z) => string;
~
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
~
!!! error TS7006: Parameter 'z' implicitly has an 'any' type.
// No implicit-'any' errors.
var dm_f13: (...r) => string;
~~~~
!!! error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
// No implicit-'any' errors.
var dm_f14: (x, ...r) => string;
~
!!! error TS7006: Parameter 'x' implicitly has an 'any' type.
~~~~
!!! error TS7019: Rest parameter 'r' implicitly has an 'any[]' type.
}
|