TypeScript/tests/baselines/reference/importTypeAmbientMissing.errors.txt
Donald Pipowitch e0f6ecd957
improve error message TS2307 (#27054)
* improve error message TS2307

* add updates missed from merge

* update more missed baselines

* remove incorrectly re-added test files

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-03-12 15:55:54 -07:00

16 lines
567 B
Plaintext

tests/cases/conformance/types/import/importTypeAmbientMissing.ts(8,17): error TS2307: Cannot find module 'fo' or its corresponding type declarations.
==== tests/cases/conformance/types/import/importTypeAmbientMissing.ts (1 errors) ====
declare module "foo" {
interface Point {
x: number;
y: number;
}
export = Point;
}
const x: import("fo") = { x: 0, y: 0 }; // typo, error
~~~~
!!! error TS2307: Cannot find module 'fo' or its corresponding type declarations.