TypeScript/tests/cases/conformance/moduleResolution/untypedModuleImport_allowJs.ts
2016-10-27 08:54:19 -07:00

13 lines
345 B
TypeScript

// @noImplicitReferences: true
// @currentDirectory: /
// @allowJs: true
// @maxNodeModuleJsDepth: 1
// Same as untypedModuleImport.ts but with --allowJs, so the package will actually be typed.
// @filename: /node_modules/foo/index.js
exports.default = { bar() { return 0; } }
// @filename: /a.ts
import foo from "foo";
foo.bar();