TypeScript/tests/cases/fourslash/syntheticImportFromBabelGeneratedFile1.ts
Wesley Wigham 69b1cb5bac
Add new special assignment kinds for recognizing Object.defineProperty calls (#27208)
* Add new special assignment kinds for recognizing Object.defineProperty calls

* Add support for prototype assignments, fix nits

* Fix code review comments

* Add test documenting behavior in a few more odd scenarios
2018-10-19 14:31:55 -07:00

20 lines
442 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) (property) f: (t: string) => void
import f`, "Run this function"); // Passes