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]>
56 lines
1.0 KiB
Plaintext
56 lines
1.0 KiB
Plaintext
// === QuickInfo ===
|
|
=== /quickInfoForObjectBindingElementName06.ts ===
|
|
// type Foo = {
|
|
// /**
|
|
// * Thing is a bar
|
|
// */
|
|
// isBar: boolean
|
|
//
|
|
// /**
|
|
// * Thing is a baz
|
|
// */
|
|
// isBaz: boolean
|
|
// }
|
|
//
|
|
// function f(): Foo {
|
|
// return undefined as any
|
|
// }
|
|
//
|
|
// const { isBaz: isBar } = f();
|
|
// isBar;
|
|
// ^^^^^
|
|
// | ----------------------------------------------------------------------
|
|
// | ```typescript
|
|
// | const isBar: boolean
|
|
// | ```
|
|
// | Thing is a baz
|
|
// | ----------------------------------------------------------------------
|
|
[
|
|
{
|
|
"marker": {
|
|
"Position": 217,
|
|
"LSPosition": {
|
|
"line": 17,
|
|
"character": 5
|
|
},
|
|
"Name": "",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"contents": {
|
|
"kind": "markdown",
|
|
"value": "```typescript\nconst isBar: boolean\n```\nThing is a baz"
|
|
},
|
|
"range": {
|
|
"start": {
|
|
"line": 17,
|
|
"character": 0
|
|
},
|
|
"end": {
|
|
"line": 17,
|
|
"character": 5
|
|
}
|
|
}
|
|
}
|
|
}
|
|
] |