Skip to content

Commit

Permalink
fix readme config
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinraja committed Apr 7, 2023
1 parent 0fee609 commit 5ddc604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ result:
Option 2 - resolve enums. This is the same as before, but you just need to pass an option:

```ts
const TreeTSType = zodToTs(TreeSchema, { resolveNativeEnums: true })
const TreeTSType = zodToTs(TreeSchema, undefined, { resolveNativeEnums: true })
```

result:
Expand Down
2 changes: 1 addition & 1 deletion test/modifiers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ObjectWithOptionals = z.object({
]).optional(),
})

describe.only('z.optional()', () => {
describe('z.optional()', () => {
it('outputs correct typescript', () => {
const { node } = zodToTs(OptionalStringSchema)
expect(printNodeTest(node)).toMatchInlineSnapshot('"string | undefined"')
Expand Down

0 comments on commit 5ddc604

Please sign in to comment.