Skip to content

Commit

Permalink
fix: flexRender types for solidjs (#5488)
Browse files Browse the repository at this point in the history
  • Loading branch information
aadito123 authored Apr 18, 2024
1 parent 99e740a commit 7c4ae98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/solid-table/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ import {
import { createComputed, mergeProps, createComponent } from 'solid-js'
import { createStore } from 'solid-js/store'

import type { JSX } from 'solid-js'
export * from '@tanstack/table-core'

export function flexRender<TProps extends {}>(Comp: any, props: TProps) {
export function flexRender<TProps>(
Comp: ((props: TProps) => JSX.Element) | JSX.Element | undefined,
props: TProps
): JSX.Element {
if (!Comp) return null

if (typeof Comp === 'function') {
Expand Down

0 comments on commit 7c4ae98

Please sign in to comment.