Fix baseline

This commit is contained in:
Ryan Cavanaugh 2026-01-22 10:15:25 -08:00
parent 5144841203
commit 3b0d3381f9
3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,25 @@
error TS2688: Cannot find type definition file for 'extra'.
The file is in the program because:
Entry point of type library 'extra' specified in compilerOptions
!!! error TS2688: Cannot find type definition file for 'extra'.
!!! error TS2688: The file is in the program because:
!!! error TS2688: Entry point of type library 'extra' specified in compilerOptions
!!! related TS1419 /tsconfig.json:1:39: File is entry point of type library specified here.
==== /tsconfig.json (0 errors) ====
{ "compilerOptions": { "types": ["*", "extra"] } }
==== /app.ts (0 errors) ====
// With "types": ["*", "extra"], all @types packages are automatically included
// plus any explicitly listed types (even if they don't exist in @types)
// This is useful for gradual migration
$.x;
_.map;
==== /node_modules/@types/jquery/index.d.ts (0 errors) ====
declare var $: { x: number };
==== /node_modules/@types/lodash/index.d.ts (0 errors) ====
declare var _: { map: any };

View File

@ -11,6 +11,13 @@
"File '/node_modules/@types/lodash/index.d.ts' exists - use it as a name resolution result.",
"Resolving real path for '/node_modules/@types/lodash/index.d.ts', result '/node_modules/@types/lodash/index.d.ts'.",
"======== Type reference directive 'lodash' was successfully resolved to '/node_modules/@types/lodash/index.d.ts', primary: true. ========",
"======== Resolving type reference directive 'extra', containing file '/__inferred type names__.ts', root directory '/node_modules/@types'. ========",
"Resolving with primary search path '/node_modules/@types'.",
"Looking up in 'node_modules' folder, initial location '/'.",
"Searching all ancestor node_modules directories for preferred extensions: Declaration.",
"File '/node_modules/extra.d.ts' does not exist.",
"File '/node_modules/@types/extra.d.ts' does not exist.",
"======== Type reference directive 'extra' was not resolved. ========",
"File '/node_modules/@types/jquery/package.json' does not exist according to earlier cached lookups.",
"File '/node_modules/@types/package.json' does not exist.",
"File '/node_modules/package.json' does not exist.",

View File

@ -14,6 +14,7 @@ $.x;
_.map;
>_.map : any
> : ^^^
>_ : { map: any; }
> : ^^^^^^^ ^^^
>map : any
@ -31,4 +32,5 @@ declare var _: { map: any };
>_ : { map: any; }
> : ^^^^^^^ ^^^
>map : any
> : ^^^