From 753259d45dbdf99c966bab937156db3a9ffae43d Mon Sep 17 00:00:00 2001 From: Jan Nicklas Date: Mon, 9 Mar 2020 09:55:28 +0100 Subject: [PATCH] fix(react plugin): export typescript interface for better ide support --- packages/plugins/react/src/GondelReactComponent.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/plugins/react/src/GondelReactComponent.tsx b/packages/plugins/react/src/GondelReactComponent.tsx index 39c87bda..79c2e20a 100644 --- a/packages/plugins/react/src/GondelReactComponent.tsx +++ b/packages/plugins/react/src/GondelReactComponent.tsx @@ -8,8 +8,9 @@ import { GondelBaseComponent } from "@gondel/core"; import { createRenderableAppWrapper } from "./AppWrapper"; import { isPromise, KeysMatching, UnwrapPromise } from "./utils"; -type RenderableReactComponent = StatelessComponent | ComponentClass; - +export type RenderableReactComponent = + | StatelessComponent + | ComponentClass; type StateOfComponent = T extends RenderableReactComponent ? V : never; interface ConstructableGondelReactComponent {