1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
=== /tests/cases/fourslash/foo.ts ===
// /// <reference no-default-lib="true"/>
// /// <reference path='./bar.d.ts' />
// import.meta;
// ^^^^^^
// | ----------------------------------------------------------------------
// |
// | ----------------------------------------------------------------------
// ^^^^^^^^^^^
// | ----------------------------------------------------------------------
// |
// | The type of `import.meta`.
// |
// | If you need to declare that a given property exists on `import.meta`,
// | this type may be augmented via interface merging.
// | ----------------------------------------------------------------------
[
{
"marker": {
"fileName": "/tests/cases/fourslash/foo.ts",
"position": 77,
"name": "1"
},
"item": {
"kind": "",
"kindModifiers": "",
"textSpan": {
"start": 75,
"length": 6
},
"displayParts": [],
"documentation": []
}
},
{
"marker": {
"fileName": "/tests/cases/fourslash/foo.ts",
"position": 84,
"name": "2"
},
"item": {
"kind": "interface",
"kindModifiers": "declare",
"textSpan": {
"start": 75,
"length": 11
},
"displayParts": [],
"documentation": [
{
"text": "The type of `import.meta`.\n\nIf you need to declare that a given property exists on `import.meta`,\nthis type may be augmented via interface merging.",
"kind": "text"
}
]
}
}
]
|