sebastianwessel / surrealdb-client-generator

Tool which generates a typescript client for SurrealDB and zod schema of a given database
MIT License
77 stars 12 forks source link

Reorder optional and passthrough #38

Closed hammo92 closed 4 months ago

hammo92 commented 4 months ago

optional should come after passthrough in zod definition z.object({}).optional().passthrough() -> z.object({}).passthrough().optional()