Skip to content

Commit

Permalink
🤖 Merge PR #56259 [reactable] Add explicit types for children by @eps…
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Oct 14, 2021
1 parent e544ffd commit a3329a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions types/reactable/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type SortDirection = 'asc' | 'desc';
export type FilterMethodType = (text: string) => void;

export interface TableComponentProperties<T> {
children?: React.ReactNode;
data?: T[] | undefined;
className?: string | undefined;
columns?: ColumnsType[] | undefined;
Expand All @@ -36,16 +37,19 @@ export interface TableComponentProperties<T> {
}

export interface ThProperties {
children?: React.ReactNode;
column: string;
className?: string | undefined;
}

export interface TrProperties<T> {
children?: React.ReactNode;
data?: T | undefined;
className?: string | undefined;
}

export interface TdProperties {
children?: React.ReactNode;
column: string;
value?: any;
data?: any;
Expand Down

0 comments on commit a3329a8

Please sign in to comment.