TypeScript/tests/cases/compiler/moduleResolutionWithExtensions_notSupported.ts
Andy 0ae42ea3de Allow relative imports of '.js' files when --noImplicitAny is disabled (#18489)
* Allow relative imports of '.js' files when `--noImplicitAny` is disabled

* Update baselines, and don't ignore a diagnostic about missing JSX
2017-09-19 12:42:29 -07:00

14 lines
304 B
TypeScript

// @noImplicitReferences: true
// @traceResolution: true
// @Filename: /tsx.tsx
// @Filename: /jsx.jsx
// @Filename: /js.js
// @Filename: /a.ts
import tsx from "./tsx"; // Not allowed.
import jsx from "./jsx"; // Not allowed.
import js from "./js"; // OK because it's an untyped module.