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.
2 parents 2cb4d40 + 44326ad commit 90193f7Copy full SHA for 90193f7
packages/client/src/codegen/generate-types.ts
@@ -148,8 +148,8 @@ function nestEndpoints(
148
function zodToString(schema: ZodTypeAny) {
149
const { node } = zodToTs(schema, undefined, { nativeEnums: "union" });
150
const nodeString = printNode(node);
151
- // This happens with large, lazyily loaded zod types
152
- return nodeString.replaceAll(" Identifier ", " unknown ");
+ // This happens with large, lazily loaded zod types
+ return nodeString.replace(/\bIdentifier\b/g, "unknown");
153
}
154
155
function makeParameterType(
0 commit comments