We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The referenced namespace in input interface is not renamed, which would cause a "Cannot find name" error in output file.
export namespace parent_schema_definitions { export interface DynamicRecordBaseView { userId: number; } } export interface Foo { bar: parent_schema_definitions.DynamicRecordBaseView; }
// Generated by ts-to-zod import { z } from 'zod'; export const parentSchemaDefinitionsDynamicRecordBaseViewSchema = z.object({ userId: z.number(), }); export const fooSchema = z.object({ bar: parentSchemaDefinitionsDynamicRecordBaseViewSchema, });
OR
// Generated by ts-to-zod import { z } from 'zod'; export namespace parent_schema_definitions { export const DynamicRecordBaseViewSchema = z.object({ userId: z.number(), }); } export const fooSchema = z.object({ bar: parent_schema_definitions.DynamicRecordBaseView, });
// Generated by ts-to-zod import { z } from 'zod'; export const parentSchemaDefinitionsDynamicRecordBaseViewSchema = z.object({ userId: z.number(), }); export const fooSchema = z.object({ bar: z.literal(parent_schema_definitions.DynamicRecordBaseView), });
Versions
v4.9.3
v3.19.1
v1.13.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug description
The referenced namespace in input interface is not renamed, which would cause a "Cannot find name" error in output file.
Input
Expected output
OR
Actual output
Versions
v4.9.3
v3.19.1
v1.13.1
The text was updated successfully, but these errors were encountered: