feat(27601): include JSDoc comments for destructuring arguments (#46886)

This commit is contained in:
Oleksandr T
2022-02-03 11:27:40 -08:00
committed by GitHub
parent 46d1cb11e2
commit 0d5abd8a15
7 changed files with 342 additions and 0 deletions
@@ -0,0 +1,14 @@
/// <reference path="fourslash.ts" />
////interface Options {
//// /**
//// * A description of foo
//// */
//// foo: string;
////}
////
////function f({ foo }: Options) {
//// foo/*1*/;
////}
verify.baselineQuickInfo();
@@ -0,0 +1,20 @@
/// <reference path="fourslash.ts" />
////interface Options {
//// /**
//// * A description of 'a'
//// */
//// a: {
//// /**
//// * A description of 'b'
//// */
//// b: string;
//// }
////}
////
////function f({ a, a: { b } }: Options) {
//// a/*1*/;
//// b/*2*/;
////}
verify.baselineQuickInfo();
@@ -0,0 +1,17 @@
/// <reference path="fourslash.ts" />
////interface A {
//// /**
//// * A description of a
//// */
//// a: number;
////}
////interface B {
//// a: string;
////}
////
////function f({ a }: A | B) {
//// a/**/;
////}
verify.baselineQuickInfo();