* Skip asterisks after newline when parsing JSDoc types * Single boolean expression * Test for parsing and printing multiline function signatures with *
32 lines
652 B
TypeScript
32 lines
652 B
TypeScript
///<reference path="fourslash.ts" />
|
|
|
|
// @allowJs: true
|
|
// @Filename: jsDocFunctionSignatures.js
|
|
|
|
/////**
|
|
//// * @param {{
|
|
//// * stringProp: string,
|
|
//// * numProp: number,
|
|
//// * boolProp: boolean,
|
|
//// * anyProp: *,
|
|
//// * anotherAnyProp:
|
|
//// * *,
|
|
//// * functionProp:
|
|
//// * function(string,
|
|
//// * *):
|
|
//// * *
|
|
//// * }} o
|
|
//// */
|
|
////function f1(o) {
|
|
//// o/**/;
|
|
////}
|
|
|
|
goTo.marker();
|
|
verify.quickInfoIs(`(parameter) o: {
|
|
stringProp: string;
|
|
numProp: number;
|
|
boolProp: boolean;
|
|
anyProp: any;
|
|
anotherAnyProp: any;
|
|
functionProp: (arg0: string, arg1: any) => any;
|
|
}`);
|