mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-24 09:58:35 -04:00
fix some types (why?! idk)
This commit is contained in:
1 parent
c0669db5d0
commit
0d6384fa00
3 files changed
+2
-3
No files matched your search
@@ -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}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user