mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
e0069505b9
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: jakebailey <[email protected]>
51 lines
1010 B
Plaintext
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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
] |