- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
52 lines
1.8 KiB
TypeScript
52 lines
1.8 KiB
TypeScript
import * as React from 'react';
|
|
import { DevtoolsButtonPosition, DevtoolsPosition, DevtoolsErrorType } from '@tanstack/query-devtools';
|
|
import { QueryClient } from '@tanstack/react-query';
|
|
|
|
interface DevtoolsOptions {
|
|
/**
|
|
* Set this true if you want the dev tools to default to being open
|
|
*/
|
|
initialIsOpen?: boolean;
|
|
/**
|
|
* The position of the React Query logo to open and close the devtools panel.
|
|
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
|
|
* Defaults to 'bottom-right'.
|
|
*/
|
|
buttonPosition?: DevtoolsButtonPosition;
|
|
/**
|
|
* The position of the React Query devtools panel.
|
|
* 'top' | 'bottom' | 'left' | 'right'
|
|
* Defaults to 'bottom'.
|
|
*/
|
|
position?: DevtoolsPosition;
|
|
/**
|
|
* Custom instance of QueryClient
|
|
*/
|
|
client?: QueryClient;
|
|
/**
|
|
* Use this so you can define custom errors that can be shown in the devtools.
|
|
*/
|
|
errorTypes?: Array<DevtoolsErrorType>;
|
|
/**
|
|
* Use this to pass a nonce to the style tag that is added to the document head. This is useful if you are using a Content Security Policy (CSP) nonce to allow inline styles.
|
|
*/
|
|
styleNonce?: string;
|
|
/**
|
|
* Use this so you can attach the devtool's styles to specific element in the DOM.
|
|
*/
|
|
shadowDOMTarget?: ShadowRoot;
|
|
/**
|
|
* Set this to true to hide disabled queries from the devtools panel.
|
|
*/
|
|
hideDisabledQueries?: boolean;
|
|
}
|
|
declare function ReactQueryDevtools(props: DevtoolsOptions): React.ReactElement | null;
|
|
|
|
type Devtools_DevtoolsOptions = DevtoolsOptions;
|
|
declare const Devtools_ReactQueryDevtools: typeof ReactQueryDevtools;
|
|
declare namespace Devtools {
|
|
export { type Devtools_DevtoolsOptions as DevtoolsOptions, Devtools_ReactQueryDevtools as ReactQueryDevtools };
|
|
}
|
|
|
|
export { Devtools as D, ReactQueryDevtools as R, type DevtoolsOptions as a };
|