Skip to content

Commit

Permalink
fix: filtering container typescript types
Browse files Browse the repository at this point in the history
Made optional props on FilteringContainer optional on exposed typescript interface
  • Loading branch information
diogofcunha authored Sep 22, 2018
1 parent 2c9d012 commit 5da1a29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ interface GroupRendererProps {

export interface FilteringContainerProps {
children: (nodes: Node[]) => JSX.Element;
debouncer: (func: (...p: any[]) => any, timeout: number) => void;
groups: {[g: string]: Group};
selectedGroup: string;
groupRenderer: React.StatelessComponent<GroupRendererProps> | React.Component<GroupRendererProps>;
onSelectedGroupChange: (c: string) => void;
debouncer?: (func: (...p: any[]) => any, timeout: number) => void;
groups?: {[g: string]: Group};
selectedGroup?: string;
groupRenderer?: React.StatelessComponent<GroupRendererProps> | React.Component<GroupRendererProps>;
onSelectedGroupChange?: (c: string) => void;
}

export class FilteringContainer extends React.Component<FilteringContainerProps> {}
Expand Down

0 comments on commit 5da1a29

Please sign in to comment.