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

48 lines
976 B
Plaintext

// === QuickInfo ===
=== /quickInfoForObjectBindingElementName03.ts ===
// interface Options {
// /**
// * A description of foo
// */
// foo: string;
// }
//
// function f({ foo }: Options) {
// foo;
// ^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | (parameter) foo: string
// | ```
// | A description of foo
// | ----------------------------------------------------------------------
// }
[
{
"marker": {
"Position": 122,
"LSPosition": {
"line": 8,
"character": 7
},
"Name": "1",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\n(parameter) foo: string\n```\nA description of foo"
},
"range": {
"start": {
"line": 8,
"character": 4
},
"end": {
"line": 8,
"character": 7
}
}
}
}
]