-
Hello everyone! 👋 Would it be possible to export props interfaces from Example: import { QueryClient, QueryClientProvider } from 'react-query';
import { ReactQueryDevtools, DevtoolsOptions } from 'react-query/devtools';
// ↑ ❌ Module '"react-query/devtools"' has no exported member 'DevtoolsOptions'.
export interface ReactQueryClientProviderProps {
client: QueryClient,
children: React.ReactChild,
devToolsOptions?: DevtoolsOptions,
}
export const ReactQueryClientProvider: React.FC<ReactQueryClientProviderProps> = () => {
// ...
} P.S. In case it's possible to do I can open a PR for this. |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Sep 9, 2021
Replies: 1 comment 1 reply
-
the best way is to extract the props:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
UgRoss
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the best way is to extract the props: