From 5da1a291fab36d963d324699dfe7de998bf952ad Mon Sep 17 00:00:00 2001 From: Diogo Date: Sat, 22 Sep 2018 08:34:59 +0100 Subject: [PATCH] fix: filtering container typescript types Made optional props on FilteringContainer optional on exposed typescript interface --- index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index 2375dd2..acd6978 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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 | React.Component; - onSelectedGroupChange: (c: string) => void; + debouncer?: (func: (...p: any[]) => any, timeout: number) => void; + groups?: {[g: string]: Group}; + selectedGroup?: string; + groupRenderer?: React.StatelessComponent | React.Component; + onSelectedGroupChange?: (c: string) => void; } export class FilteringContainer extends React.Component {}