20 lines
705 B
TypeScript
20 lines
705 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
// @allowJs: true
|
|
// @Filename: in.js
|
|
/////** I am documentation
|
|
//// * @param {'literal'} p1
|
|
//// * @param {"literal"} p2
|
|
//// * @param {'other1' | 'other2'} p3
|
|
//// * @param {'literal' | number} p4
|
|
//// * @param {12 | true} p5
|
|
//// */
|
|
////function f(p1, p2, p3, p4, p5) {
|
|
//// return p1 + p2 + p3 + p4 + p5 + '.';
|
|
////}
|
|
////f/*1*/('literal', 'literal', "o/*2*/ther1", 12);
|
|
|
|
goTo.marker('1');
|
|
verify.quickInfoExists();
|
|
verify.quickInfoIs('function f(p1: "literal", p2: "literal", p3: "other1" | "other2", p4: number | "literal", p5: true | 12): string', 'I am documentation');
|
|
|
|
verify.completions({ marker: "2", exact: ["other1", "other2"] });
|