Files
tsgo/testdata/baselines/reference/submodule/compiler/anonymousModules.errors.txt
ac28acd667 Port TypeScript PR #63054: Default types to [], support "*" wildcard (#2688)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: RyanCavanaugh <[email protected]>
Co-authored-by: Jake Bailey <[email protected]>
Co-authored-by: Ryan Cavanaugh <[email protected]>
2026-03-09 21:20:05 +00:00

34 lines
1.8 KiB
Plaintext

anonymousModules.ts(1,1): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
anonymousModules.ts(1,8): error TS1437: Namespace must be given a name.
anonymousModules.ts(4,2): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
anonymousModules.ts(4,9): error TS1437: Namespace must be given a name.
anonymousModules.ts(10,2): error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
anonymousModules.ts(10,9): error TS1437: Namespace must be given a name.
==== anonymousModules.ts (6 errors) ====
module {
~~~~~~
!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
~
!!! error TS1437: Namespace must be given a name.
export var foo = 1;
module {
~~~~~~
!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
~
!!! error TS1437: Namespace must be given a name.
export var bar = 1;
}
var bar = 2;
module {
~~~~~~
!!! error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
~
!!! error TS1437: Namespace must be given a name.
var x = bar;
}
}