Skip to content

Commit 3a27216

Browse files
committed
ci: fix tests
1 parent a0306d5 commit 3a27216

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

typescript/src/completions/indexSignatureAccess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default (
2323
usedProp = otherSideNode.getText().slice(1, -1)
2424
}
2525
}
26-
return type.getProperties().map((prop, i) => {
26+
return (type.getProperties?.() ?? []).map((prop, i) => {
2727
return {
2828
kind: ts.ScriptElementKind.string,
2929
name: prop.name,

typescript/test/completions.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { getNavTreeItems } from '../src/getPatchedNavTree'
88
import { createRequire } from 'module'
99

1010
const require = createRequire(import.meta.url)
11+
//@ts-ignore plugin expect it to set globallly
12+
globalThis.ts = ts
1113

1214
const entrypoint = '/test.tsx'
1315
const files = { [entrypoint]: '' }

0 commit comments

Comments
 (0)