@@ -4,10 +4,10 @@ declare global {
namespace JSX {
export type Element = VaporRenderResult
export interface ElementClass {
- props: {}
+ $props: {}
}
export interface ElementAttributesProperty {
export interface IntrinsicElements extends NativeElements {
[name: string]: any
@@ -635,6 +635,12 @@ export class VaporComponentInstance<
*/
accessedAttrs: boolean = false
+ // type only
+ /**
+ * @deprecated only used for JSX to detect props types.
+ */
+ $props!: Props
+
constructor(
comp: VaporComponent,
rawProps?: RawProps | null,