Files
tsgo/testdata/baselines/reference/fourslash/quickInfo/destructuredWithOwnJSDoc.baseline
e0069505b9 Use typescript instead of tsx for hover code block language (#3458)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-04-22 17:14:11 +00:00

88 lines
2.0 KiB
Plaintext

// === QuickInfo ===
=== /destructuredWithOwnJSDoc.ts ===
//
// interface Foo {
// /** This is bar from the interface */
// bar: string;
// /** This is baz from the interface */
// baz: number;
// }
//
// declare var foo: Foo;
//
// /** Comment on the variable statement. */
// const {
// /** Comment on bar destructuring. */ bar,
// ^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | const bar: string
// | ```
// | This is bar from the interface
// | ----------------------------------------------------------------------
// /** Comment on baz destructuring. */ baz
// ^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | const baz: number
// | ```
// | This is baz from the interface
// | ----------------------------------------------------------------------
// } = foo;
//
[
{
"marker": {
"Position": 252,
"LSPosition": {
"line": 12,
"character": 41
},
"Name": "1",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst bar: string\n```\nThis is bar from the interface"
},
"range": {
"start": {
"line": 12,
"character": 41
},
"end": {
"line": 12,
"character": 44
}
}
}
},
{
"marker": {
"Position": 298,
"LSPosition": {
"line": 13,
"character": 41
},
"Name": "2",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\nconst baz: number\n```\nThis is baz from the interface"
},
"range": {
"start": {
"line": 13,
"character": 41
},
"end": {
"line": 13,
"character": 44
}
}
}
}
]