TypeScript/tests/cases/fourslash/jsDocFunctionSignatures7.ts
Nathan Shively-Sanders dca3a94f88
Print js-constructor function type names (#23089)
* Print js-constructor function type names

Instead of printing them as a type literal, which is scary.

* Use assigned name for functions and classes

That otherwise have no name. This helps quick info for javascript a
*lot*. Typescript mainly benefits when printing the type of class
expressions.

* Improve names of functions in binding elements

Also fix some fourslash baselines
2018-04-04 15:43:41 -07:00

17 lines
320 B
TypeScript

///<reference path="fourslash.ts" />
// @allowJs: true
// @Filename: Foo.js
/////**
//// * @param {string} p0
//// * @param {string} [p1]
//// */
////function Test(p0, p1) {
//// this.P0 = p0;
//// this.P1 = p1;
////}
////
////
////var /**/test = new Test("");
goTo.marker();
verify.quickInfoIs('var test: Test');