* Alias for `module.exports.x = x` This fixes #40155 in a surprisingly small amount of code. * Treat any aliasable expression as an alias * test internal references to exported class
21 lines
438 B
TypeScript
21 lines
438 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
// @allowJs: true
|
|
// @allowSyntheticDefaultImports: true
|
|
|
|
// @Filename: /a.js
|
|
////exports.__esModule = true;
|
|
////exports.default = f;
|
|
/////**
|
|
//// * Run this function
|
|
//// * @param {string} t
|
|
//// */
|
|
////function f(t) {}
|
|
|
|
// @Filename: /b.js
|
|
////import f from "./a"
|
|
/////**/f
|
|
|
|
verify.quickInfoAt("", `(alias) function f(t: string): void
|
|
import f`, "Run this function"); // Passes
|