Skip to content

Commit 90193f7

Browse files
authored
Merge pull request #100 from stainless-api/boris/fix-replace-identifier
2 parents 2cb4d40 + 44326ad commit 90193f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client/src/codegen/generate-types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ function nestEndpoints(
148148
function zodToString(schema: ZodTypeAny) {
149149
const { node } = zodToTs(schema, undefined, { nativeEnums: "union" });
150150
const nodeString = printNode(node);
151-
// This happens with large, lazyily loaded zod types
152-
return nodeString.replaceAll(" Identifier ", " unknown ");
151+
// This happens with large, lazily loaded zod types
152+
return nodeString.replace(/\bIdentifier\b/g, "unknown");
153153
}
154154

155155
function makeParameterType(

0 commit comments

Comments
 (0)