We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0306d5 commit 3a27216Copy full SHA for 3a27216
typescript/src/completions/indexSignatureAccess.ts
@@ -23,7 +23,7 @@ export default (
23
usedProp = otherSideNode.getText().slice(1, -1)
24
}
25
26
- return type.getProperties().map((prop, i) => {
+ return (type.getProperties?.() ?? []).map((prop, i) => {
27
return {
28
kind: ts.ScriptElementKind.string,
29
name: prop.name,
typescript/test/completions.spec.ts
@@ -8,6 +8,8 @@ import { getNavTreeItems } from '../src/getPatchedNavTree'
8
import { createRequire } from 'module'
9
10
const require = createRequire(import.meta.url)
11
+//@ts-ignore plugin expect it to set globallly
12
+globalThis.ts = ts
13
14
const entrypoint = '/test.tsx'
15
const files = { [entrypoint]: '' }
0 commit comments