Skip to content

Commit

Permalink
improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeart committed Jan 16, 2025
1 parent fabe97d commit 8cef840
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {
import { cellToText, createRoot, MergedCell } from '.';

export type ComponentRenderTarget =
| Element
| HTMLElement
| DocumentFragment
| ComponentReturnType;
Expand Down Expand Up @@ -111,7 +112,7 @@ export function renderElement(
const OBJECT_PROTO = Object.getPrototypeOf({});

export function renderComponent(
component: ComponentReturnType | Component<any>,
component: ComponentReturnType | Component<any> | typeof Component,
target: ComponentRenderTarget,
appRoot: Root | Component<any> = createRoot(),
skipRoot?: boolean,
Expand Down

0 comments on commit 8cef840

Please sign in to comment.