Files
tsgo/testdata/baselines/reference/fourslash/quickInfo/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.baseline

63 lines
1.7 KiB
Plaintext

// === QuickInfo ===
=== /quickInfoOnUnionPropertiesWithIdenticalJSDocComments01.ts ===
// export type DocumentFilter = {
// /** A language id, like `typescript`. */
// language: string;
// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */
// scheme?: string;
// /** A glob pattern, like `*.{ts,js}`. */
// pattern?: string;
// } | {
// /** A language id, like `typescript`. */
// language?: string;
// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */
// scheme: string;
// /** A glob pattern, like `*.{ts,js}`. */
// pattern?: string;
// } | {
// /** A language id, like `typescript`. */
// language?: string;
// /** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */
// scheme?: string;
// /** A glob pattern, like `*.{ts,js}`. */
// pattern: string;
// };
//
// declare let x: DocumentFilter;
// x.language
// ^^^^^^^^
// | ----------------------------------------------------------------------
// | ```typescript
// | (property) language?: string | undefined
// | ```
// | A language id, like `typescript`.
// | ----------------------------------------------------------------------
[
{
"marker": {
"Position": 746,
"LSPosition": {
"line": 24,
"character": 2
},
"Name": "",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\n(property) language?: string | undefined\n```\nA language id, like `typescript`."
},
"range": {
"start": {
"line": 24,
"character": 2
},
"end": {
"line": 24,
"character": 10
}
}
}
}
]