Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix github flow * Add `inferredTypes` option * Add inferredTypes in the example * Fix doc
- Loading branch information
1 parent
b0eb555
commit 250f64d
Showing
7 changed files
with
108 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// Generated by ts-to-zod | ||
import { z } from "zod"; | ||
|
||
import * as generated from "./heros.zod"; | ||
|
||
export type EnemyPower = z.infer<typeof generated.enemyPowerSchema>; | ||
|
||
export type SkillsSpeedEnemy = z.infer<typeof generated.skillsSpeedEnemySchema>; | ||
|
||
export type Enemy = z.infer<typeof generated.enemySchema>; | ||
|
||
export type Superman = z.infer<typeof generated.supermanSchema>; | ||
|
||
export type Villain = z.infer<typeof generated.villainSchema>; | ||
|
||
export type Story = z.infer<typeof generated.storySchema>; | ||
|
||
export type KrytonResponse = z.infer<typeof generated.krytonResponseSchema>; | ||
|
||
export type KillSuperman = z.infer<typeof generated.killSupermanSchema>; | ||
|
||
export type WithDefaults = z.infer<typeof generated.withDefaultsSchema>; | ||
|
||
export type Exported = z.infer<typeof generated.exportedSchema>; | ||
|
||
export type GetSupermanSkill = z.infer<typeof generated.getSupermanSkillSchema>; | ||
|
||
export type HeroContact = z.infer<typeof generated.heroContactSchema>; | ||
|
||
export type SupermanEnemy = z.infer<typeof generated.supermanEnemySchema>; | ||
|
||
export type SupermanName = z.infer<typeof generated.supermanNameSchema>; | ||
|
||
export type SupermanInvinciblePower = z.infer< | ||
typeof generated.supermanInvinciblePowerSchema | ||
>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters