diff --git a/sigpro.ts b/sigpro.ts index c66da17..4d1ea99 100644 --- a/sigpro.ts +++ b/sigpro.ts @@ -14,6 +14,20 @@ interface EffectFn { _dirty?: boolean; } +type JSXFunction = { +
>( + tag: string, + props: (P & { children?: any }) | null, + ...children: any[] + ): HTMLElement; + +
>(
+ tag: (props: P, context?: any) => any,
+ props: (P & { children?: any }) | null,
+ ...children: any[]
+ ): any;
+};
+
type Owner = { cleanups: Set