Spaces:
Sleeping
Sleeping
Download node_modules/@reduxjs/toolkit/src/query/fakeBaseQuery.ts from Scribbler310/gs-port: direct link, hf CLI and curl.
- Browser
- Download file 601 Bytes
-
https://huggingface.co/spaces/Scribbler310/gs-port/resolve/main/node_modules/%40reduxjs/toolkit/src/query/fakeBaseQuery.ts
- Command line
-
hf download hf://spaces/Scribbler310/gs-port/node_modules/@reduxjs/toolkit/src/query/fakeBaseQuery.ts
-
curl -L -o fakeBaseQuery.ts https://huggingface.co/spaces/Scribbler310/gs-port/resolve/main/node_modules/%40reduxjs/toolkit/src/query/fakeBaseQuery.ts
601 Bytes
| import type { BaseQueryFn } from './baseQueryTypes' | |
| export const _NEVER = /* @__PURE__ */ Symbol() | |
| export type NEVER = typeof _NEVER | |
| /** | |
| * Creates a "fake" baseQuery to be used if your api *only* uses the `queryFn` definition syntax. | |
| * This also allows you to specify a specific error type to be shared by all your `queryFn` definitions. | |
| */ | |
| export function fakeBaseQuery<ErrorType>(): BaseQueryFn< | |
| void, | |
| NEVER, | |
| ErrorType, | |
| {} | |
| > { | |
| return function () { | |
| throw new Error( | |
| 'When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.', | |
| ) | |
| } | |
| } | |