Files
tsgo/testdata/baselines/reference/fourslash/quickInfo/quickInfoForObjectBindingElementName04.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

90 lines
1.8 KiB
Plaintext

// === QuickInfo ===
=== /quickInfoForObjectBindingElementName04.ts ===
// interface Options {
// /**
// * A description of 'a'
// */
// a: {
// /**
// * A description of 'b'
// */
// b: string;
// }
// }
//
// function f({ a, a: { b } }: Options) {
// a;
// ^
// | ----------------------------------------------------------------------
// | ```typescript
// | (parameter) a: {
// | b: string;
// | }
// | ```
// | A description of 'a'
// | ----------------------------------------------------------------------
// b;
// ^
// | ----------------------------------------------------------------------
// | ```typescript
// | (parameter) b: string
// | ```
// | A description of 'b'
// | ----------------------------------------------------------------------
// }
[
{
"marker": {
"Position": 193,
"LSPosition": {
"line": 13,
"character": 5
},
"Name": "1",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\n(parameter) a: {\n b: string;\n}\n```\nA description of 'a'"
},
"range": {
"start": {
"line": 13,
"character": 4
},
"end": {
"line": 13,
"character": 5
}
}
}
},
{
"marker": {
"Position": 200,
"LSPosition": {
"line": 14,
"character": 5
},
"Name": "2",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\n(parameter) b: string\n```\nA description of 'b'"
},
"range": {
"start": {
"line": 14,
"character": 4
},
"end": {
"line": 14,
"character": 5
}
}
}
}
]