mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-24 04:30:53 -06:00
Fix path in importDeclTypes.ts test (#15992)
This commit is contained in:
parent
aaeb565e91
commit
bba8e74496
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user