mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Fix path in importDeclTypes.ts test (#15992)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
tests/cases/compiler/a.ts(1,21): error TS6137: Cannot import type declaration files. Consider importing 'foo-bar' instead of '@types/foo-bar'.
|
||||
/a.ts(1,21): error TS6137: Cannot import type declaration files. Consider importing 'foo-bar' instead of '@types/foo-bar'.
|
||||
|
||||
|
||||
==== /node_modules/@types/foo-bar/index.d.ts (0 errors) ====
|
||||
@@ -7,7 +7,7 @@ tests/cases/compiler/a.ts(1,21): error TS6137: Cannot import type declaration fi
|
||||
}
|
||||
|
||||
// This should error
|
||||
==== tests/cases/compiler/a.ts (1 errors) ====
|
||||
==== /a.ts (1 errors) ====
|
||||
import { Foo } from "@types/foo-bar";
|
||||
~~~~~~~~~~~~~~~~
|
||||
!!! error TS6137: Cannot import type declaration files. Consider importing 'foo-bar' instead of '@types/foo-bar'.
|
||||
|
||||
@@ -5,5 +5,5 @@ export interface Foo {
|
||||
}
|
||||
|
||||
// This should error
|
||||
// @filename: a.ts
|
||||
// @filename: /a.ts
|
||||
import { Foo } from "@types/foo-bar";
|
||||
|
||||
Reference in New Issue
Block a user