fakeBaseQuery.d.ts 457 B

123456789
  1. import type { BaseQueryFn } from './baseQueryTypes';
  2. declare const _NEVER: unique symbol;
  3. export declare type NEVER = typeof _NEVER;
  4. /**
  5. * Creates a "fake" baseQuery to be used if your api *only* uses the `queryFn` definition syntax.
  6. * This also allows you to specify a specific error type to be shared by all your `queryFn` definitions.
  7. */
  8. export declare function fakeBaseQuery<ErrorType>(): BaseQueryFn<void, NEVER, ErrorType, {}>;
  9. export {};