diff --git a/packages/lib/src/utils.ts b/packages/lib/src/utils.ts index cb05913f..779f7878 100644 --- a/packages/lib/src/utils.ts +++ b/packages/lib/src/utils.ts @@ -1,4 +1,5 @@ import { node, nodeToCtxMap } from "./globals.js" +import type { GlobalContext } from "./globalContext" export { isVNode, @@ -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) }