We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2751d0 commit 78b2a40Copy full SHA for 78b2a40
plugins/typescript/src/templates/fetcher.ts
@@ -17,11 +17,7 @@ export const getFetcher = ({
17
`${
18
contextPath
19
? `import { ${pascal(prefix)}Context } from "./${contextPath}";`
20
- : `
21
-
22
- const baseUrl = ${baseUrl ? `"${baseUrl}"` : `""; // TODO add your baseUrl`}
23
24
- export type ${pascal(prefix)}FetcherExtraProps = {
+ : `export type ${pascal(prefix)}FetcherExtraProps = {
25
/**
26
* You can add some extra props to your generated fetchers.
27
*
@@ -33,6 +29,8 @@ export const getFetcher = ({
33
29
}`
34
30
}
35
31
32
+const baseUrl = ${baseUrl ? `"${baseUrl}"` : `""; // TODO add your baseUrl`}
+
36
export type ${pascal(
37
prefix
38
)}FetcherOptions<TBody, THeaders, TQueryParams, TPathParams> = {
0 commit comments