From c7b798fb96b12e0ab46d058e65e9f3abf6682acb Mon Sep 17 00:00:00 2001 From: Robby6Strings Date: Fri, 5 Apr 2024 10:03:35 +1300 Subject: [PATCH] fix type issue causing incorrect type resolution with TSC --- packages/lib/src/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) }