fix some types (why?! idk)

This commit is contained in:
maxichrome committed 2022-05-27 02:58:36 -05:00
1 parent c0669db5d0
commit 0d6384fa00
3 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ function App() {
}}
openDialog={function (options: {
directory?: boolean | undefined;
}): Promise<string | string[]> {
}): Promise<string | string[] | null> {
return dialog.open(options);
}}
isFocused={focused}
-1
View File
@@ -11,7 +11,6 @@ export const ClientProvider: React.FC<ClientProviderProps> = ({ children, ...pro
return (
// This exists to add the QueryClientProvider to the current subpackage '@sd/client'.
// The ReactQueryClient is fetched from the window object (which is set in the parent application).
// @ts-expect-error: react-query depends on the react@^17 FC type which includes children -- once v4.0 is released this will not be necessary
<QueryClientProvider {...props} client={window.ReactQueryClient}>
{children}
</QueryClientProvider>
+1 -1
View File
@@ -45,7 +45,7 @@ export interface AppProps {
transport: BaseTransport;
platform: Platform;
convertFileSrc: (url: string) => string;
openDialog: (options: { directory?: boolean }) => Promise<string | string[]>;
openDialog: (options: { directory?: boolean }) => Promise<string | string[] | null>;
onClose?: () => void;
onMinimize?: () => void;
onFullscreen?: () => void;