diff --git a/src/ui/components/Tab.tsx b/src/ui/components/Tab.tsx index e48685bad..8bd3157c9 100644 --- a/src/ui/components/Tab.tsx +++ b/src/ui/components/Tab.tsx @@ -38,6 +38,6 @@ export type Props = { width?: WidthProperty; }; -export default function Tab(_props: Props) { +export default function Tab(_props: Props): JSX.Element { throw new Error("don't render me"); } diff --git a/types/react-virtualized.d.tsx b/types/react-virtualized.d.tsx new file mode 100644 index 000000000..9a7c90bea --- /dev/null +++ b/types/react-virtualized.d.tsx @@ -0,0 +1,11 @@ +/** + * Copyright 2018-present Facebook. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * @format + */ + +declare module 'react-virtualized' { + const AutoSizer: any; + const Collection: any; +}