Browse Source

modify nullable

yuto-o 4 years ago
parent
commit
10a978116e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/components/SearchPage/SearchControl.tsx

+ 2 - 2
packages/app/src/components/SearchPage/SearchControl.tsx

@@ -7,8 +7,8 @@ type Props = {
   searchingKeyword: string,
   appContainer: AppContainer,
   onSearchInvoked: (data : any[]) => boolean,
-  onExcludeUsersHome: (() => void) | null,
-  onExcludeTrash: (() => void) | null,
+  onExcludeUsersHome?: () => void,
+  onExcludeTrash?: () => void,
 }
 
 const SearchControl: FC <Props> = (props: Props) => {