From 4e190bca224e9444a64fa03b2d9142b402b6cf0a Mon Sep 17 00:00:00 2001 From: Max Patiiuk Date: Tue, 30 Jan 2024 20:07:21 -0800 Subject: [PATCH] fix(declarations): use propper JSX typings Fixes #5306 --- src/declarations/stencil-public-runtime.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/declarations/stencil-public-runtime.ts b/src/declarations/stencil-public-runtime.ts index 259604397b9..62d97ea71ed 100644 --- a/src/declarations/stencil-public-runtime.ts +++ b/src/declarations/stencil-public-runtime.ts @@ -596,12 +596,12 @@ export interface ChildNode { * * For further information: https://stenciljs.com/docs/host-element */ -export declare const Host: FunctionalComponent; +export declare const Host: (props: HostAttributes) => VNode; /** * Fragment */ -export declare const Fragment: FunctionalComponent<{}>; +export declare const Fragment: (props: {}) => VNode; /* eslint-disable jsdoc/require-param, jsdoc/require-returns -- we don't want to JSDoc these overloads at this time */ /** @@ -619,6 +619,7 @@ export declare namespace h { export function h(sel: any, data: VNodeData | null, children: VNode): VNode; export namespace JSX { + type Element = VNode; interface IntrinsicElements extends LocalJSX.IntrinsicElements, JSXBase.IntrinsicElements { [tagName: string]: any; }