diff --git a/packages/interactivity/src/hooks.tsx b/packages/interactivity/src/hooks.tsx index 2dfc08a43f6fa8..616c370961310e 100644 --- a/packages/interactivity/src/hooks.tsx +++ b/packages/interactivity/src/hooks.tsx @@ -142,6 +142,7 @@ const namespaceStack: string[] = []; * @return The context content. */ export const getContext = < T extends object >( namespace?: string ): T => + // @ts-expect-error it's any! getScope()?.context[ namespace || getNamespace() ]; /**