Skip to content

Commit

Permalink
chore: fix typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
astahmer committed Oct 27, 2023
1 parent 2d02bce commit 61f4251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/language-server/src/tokens/traverse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function traverse(
if (isObjectOrArray(currentItem.value) && currentItem.depth < maxDepth) {
const keys = Object.keys(currentItem.value)
for (let i = keys.length - 1; i >= 0; i--) {
const key = keys[i]
const key = keys[i] as string
const value = currentItem.value[key]
const path = currentItem.path ? currentItem.path + separator + key : key
stack.push({ value, path, depth: currentItem.depth + 1, parent: currentItem.value, key })
Expand Down

0 comments on commit 61f4251

Please sign in to comment.