-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split tanstack query plugin into modules
- Loading branch information
Showing
41 changed files
with
1,406 additions
and
1,269 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
packages/openapi-ts/src/plugins/@tanstack/query-core/client.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { getConfig } from '../../../utils/config'; | ||
|
||
// TODO: this function could be moved so other plugins can reuse it | ||
export const getClientBaseUrlKey = () => { | ||
const config = getConfig(); | ||
return config.client.name === '@hey-api/client-axios' ? 'baseURL' : 'baseUrl'; | ||
}; | ||
Oops, something went wrong.