* 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
20 lines
No EOL
442 B
TypeScript
20 lines
No EOL
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
|