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

51 lines
1010 B
Plaintext

// === QuickInfo ===
=== /quickInfoForObjectBindingElementName05.ts ===
// interface A {
// /**
// * A description of a
// */
// a: number;
// }
// interface B {
// a: string;
// }
//
// function f({ a }: A | B) {
// a;
// ^
// | ----------------------------------------------------------------------
// | ```typescript
// | (parameter) a: string | number
// | ```
// | A description of a
// | ----------------------------------------------------------------------
// }
[
{
"marker": {
"Position": 137,
"LSPosition": {
"line": 11,
"character": 5
},
"Name": "",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\n(parameter) a: string | number\n```\nA description of a"
},
"range": {
"start": {
"line": 11,
"character": 4
},
"end": {
"line": 11,
"character": 5
}
}
}
}
]