12 lines
345 B
TypeScript
12 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();
|