Skip to content

Commit 3b0d338

Browse files
committed
Fix baseline
1 parent 5144841 commit 3b0d338

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
error TS2688: Cannot find type definition file for 'extra'.
2+
The file is in the program because:
3+
Entry point of type library 'extra' specified in compilerOptions
4+
5+
6+
!!! error TS2688: Cannot find type definition file for 'extra'.
7+
!!! error TS2688: The file is in the program because:
8+
!!! error TS2688: Entry point of type library 'extra' specified in compilerOptions
9+
!!! related TS1419 /tsconfig.json:1:39: File is entry point of type library specified here.
10+
==== /tsconfig.json (0 errors) ====
11+
{ "compilerOptions": { "types": ["*", "extra"] } }
12+
13+
==== /app.ts (0 errors) ====
14+
// With "types": ["*", "extra"], all @types packages are automatically included
15+
// plus any explicitly listed types (even if they don't exist in @types)
16+
// This is useful for gradual migration
17+
$.x;
18+
_.map;
19+
20+
==== /node_modules/@types/jquery/index.d.ts (0 errors) ====
21+
declare var $: { x: number };
22+
23+
==== /node_modules/@types/lodash/index.d.ts (0 errors) ====
24+
declare var _: { map: any };
25+

tests/baselines/reference/typesOptionWildcardWithExplicit.trace.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
"File '/node_modules/@types/lodash/index.d.ts' exists - use it as a name resolution result.",
1212
"Resolving real path for '/node_modules/@types/lodash/index.d.ts', result '/node_modules/@types/lodash/index.d.ts'.",
1313
"======== Type reference directive 'lodash' was successfully resolved to '/node_modules/@types/lodash/index.d.ts', primary: true. ========",
14+
"======== Resolving type reference directive 'extra', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========",
15+
"Resolving with primary search path '/node_modules/@types'.",
16+
"Looking up in 'node_modules' folder, initial location '/'.",
17+
"Searching all ancestor node_modules directories for preferred extensions: Declaration.",
18+
"File '/node_modules/extra.d.ts' does not exist.",
19+
"File '/node_modules/@types/extra.d.ts' does not exist.",
20+
"======== Type reference directive 'extra' was not resolved. ========",
1421
"File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups.",
1522
"File '/node_modules/@types/package.json' does not exist.",
1623
"File '/node_modules/package.json' does not exist.",

tests/baselines/reference/typesOptionWildcardWithExplicit.types

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ $.x;
1414

1515
_.map;
1616
>_.map : any
17+
> : ^^^
1718
>_ : { map: any; }
1819
> : ^^^^^^^ ^^^
1920
>map : any
@@ -31,4 +32,5 @@ declare var _: { map: any };
3132
>_ : { map: any; }
3233
> : ^^^^^^^ ^^^
3334
>map : any
35+
> : ^^^
3436

0 commit comments

Comments
 (0)