We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 164beb3 commit 2c814f4Copy full SHA for 2c814f4
tests/cases/fourslash/jsdocNullableUnion.ts
@@ -0,0 +1,23 @@
1
+///<reference path="fourslash.ts" />
2
+// @allowNonTsExtensions: true
3
+// @Filename: Foo.js
4
+////
5
+//// * @param {never | {x: string}} p1
6
+//// * @param {undefined | {y: number}} p2
7
+//// * @param {null | {z: boolean}} p3
8
+//// * @returns {void} nothing
9
+//// */
10
+////function f(p1, p2, p3) {
11
+//// p1./*1*/
12
+//// p2./*2*/
13
+//// p3./*3*/
14
+////}
15
+
16
+goTo.marker('1');
17
+verify.memberListContains("x");
18
19
+goTo.marker('2');
20
+verify.memberListContains("y");
21
22
+goTo.marker('3');
23
+verify.memberListContains("z");
0 commit comments