Skip to content

Commit

Permalink
fix type issue causing incorrect type resolution with TSC
Browse files Browse the repository at this point in the history
  • Loading branch information
LankyMoose committed Apr 4, 2024
1 parent a8fe122 commit c7b798f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/lib/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { node, nodeToCtxMap } from "./globals.js"
import type { GlobalContext } from "./globalContext"

export {
isVNode,
Expand All @@ -19,7 +20,7 @@ export {

const noop = Object.freeze(() => {})

function getNodeGlobalContext(node: Kaioken.VNode) {
function getNodeGlobalContext(node: Kaioken.VNode): GlobalContext | undefined {
return nodeToCtxMap.get(node)
}

Expand Down

0 comments on commit c7b798f

Please sign in to comment.