You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportnamespaceTfLResponse{exportinterfaceStopPoint{naptanId: string;// some other stuff}exportinterfaceStopPointArrayextendsArray<StopPoint>{}}
i also tried the following but get the same error:
exportnamespaceTfLResponse{exportinterfaceStopPoint{naptanId: string;// some other stuff}exporttypeStopPointArray=StopPoint[];}
Expected output
i expect the type to be generated:
exportconsttfLResponseStopPointSchema=z.object({naptanId: z.string(),// some other stuff});exportconsttfLResponseStopPointArraySchema=z.array(tfLResponseStopPointSchema);
Actual output
zod is giving me this warning, and the StopPointArray type is not being converted:
DeprecationWarning: 'updateInterfaceDeclaration' has been deprecated since v4.8.0. Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter.
DeprecationWarning: 'updateTypeAliasDeclaration' has been deprecated since v4.8.0. Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter.
› Warning: Some schemas can't be generated due to direct or indirect missing dependencies:
› tfLResponseStopPointArraySchema
⠋ Validating generated typesDeprecationWarning: 'createTypeAliasDeclaration' has been deprecated since v4.8.0. Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter.
✔ Validating generated types
🎉 Zod schemas generated!
Versions
Typescript: v5.1.6
Zod: v3.21.4
The text was updated successfully, but these errors were encountered:
Bug description
unable to generate array type
Input
i also tried the following but get the same error:
Expected output
i expect the type to be generated:
Actual output
zod is giving me this warning, and the
StopPointArray
type is not being converted:Versions
v5.1.6
v3.21.4
The text was updated successfully, but these errors were encountered: