-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Change default of types to [] in tsconfig.json
#63031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 5 commits
4a9fccf
2b70067
3040049
8eeb702
95e2cd0
25b06e8
148074c
83af771
5144841
3b0d338
e641e7e
89de5f6
387b02a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,3 +29,22 @@ module.exports = { | |
| export const thing: Something; | ||
| import Something_1 = require("fs"); | ||
| import Something = Something_1.Something; | ||
|
|
||
|
|
||
| //// [DtsFileErrors] | ||
|
|
||
|
|
||
| tests/cases/conformance/jsdoc/declarations/out/index.d.ts(2,30): error TS2307: Cannot find module 'fs' or its corresponding type declarations. | ||
|
|
||
|
|
||
| ==== tests/cases/conformance/jsdoc/declarations/out/index.d.ts (1 errors) ==== | ||
| export const thing: Something; | ||
| import Something_1 = require("fs"); | ||
| ~~~~ | ||
| !!! error TS2307: Cannot find module 'fs' or its corresponding type declarations. | ||
| import Something = Something_1.Something; | ||
|
Comment on lines
+34
to
+45
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Something isn't right here; probably need to update the test as it explicitly makes a |
||
|
|
||
| ==== node_modules/@types/node/index.d.ts (0 errors) ==== | ||
| declare module "fs" { | ||
| export class Something {} | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,3 +31,26 @@ export namespace A { | |
| } | ||
| import Something_1 = require("fs"); | ||
| import Something = Something_1.Something; | ||
|
|
||
|
|
||
| //// [DtsFileErrors] | ||
|
|
||
|
|
||
| tests/cases/conformance/jsdoc/declarations/out/index.d.ts(6,30): error TS2307: Cannot find module 'fs' or its corresponding type declarations. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same thing here. |
||
|
|
||
|
|
||
| ==== tests/cases/conformance/jsdoc/declarations/out/index.d.ts (1 errors) ==== | ||
| export namespace A { | ||
| namespace B { | ||
| let thing: Something; | ||
| } | ||
| } | ||
| import Something_1 = require("fs"); | ||
| ~~~~ | ||
| !!! error TS2307: Cannot find module 'fs' or its corresponding type declarations. | ||
| import Something = Something_1.Something; | ||
|
|
||
| ==== node_modules/@types/node/index.d.ts (0 errors) ==== | ||
| declare module "fs" { | ||
| export class Something {} | ||
| } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| /a.ts(1,1): error TS2304: Cannot find name 'a'. | ||
|
|
||
|
|
||
| ==== /a.ts (1 errors) ==== | ||
| a; | ||
| ~ | ||
| !!! error TS2304: Cannot find name 'a'. | ||
|
|
||
| ==== /node_modules/@types/.a/index.d.ts (0 errors) ==== | ||
| declare const a: number; | ||
|
|
||
| ==== /node_modules/@types/a/index.d.ts (0 errors) ==== | ||
| declare const a: string; | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,6 @@ | ||
| //// [tests/cases/compiler/moduleResolution_automaticTypeDirectiveNames.ts] //// | ||
|
|
||
| === /a.ts === | ||
| a; | ||
| >a : Symbol(a, Decl(index.d.ts, 0, 13)) | ||
|
|
||
| === /node_modules/@types/a/index.d.ts === | ||
| declare const a: string; | ||
| >a : Symbol(a, Decl(index.d.ts, 0, 13)) | ||
| a; | ||
|
|
Uh oh!
There was an error while loading. Please reload this page.