Zod | Documentation
src"
content="https://opengraph.githubassets.com/1cac1150838995e1f7d1643c00eee51a5d884f2054f995c9d3225b07b0eddb39/colinhacks/zod"
/>
alt"
content="TypeScript-first schema validation with static type inference"
/>
width" content="1200" />
height" content="600" />
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-FG8DDV0GBR"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-FG8DDV0GBR");
</script>
<link
rel="preload"
href="//cdn.jsdelivr.net/npm/docsify@4.12.2/lib/themes/vue.css"
type="text/css"
as="style"
onload="this.onload=null;this.rel='stylesheet';"
/>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
article {
max-width: 700px;
}
.markdown-section {
max-width: 700px;
margin: 0 auto;
box-sizing: border-box;
padding: 20px;
}
p > img {
max-width: 100%;
height: auto;
}
.markdown-section h2 {
padding: 40px 0px 10px 0px;
border-bottom: 1px solid #dbdbdb;
}
.markdown-section h3 {
padding-top: 15px;
}
.markdown-section h3 code {
font-size: 80%;
}
.sidebar {
padding-top: 24px;
}
.sidebar::-webkit-scrollbar {
width: 6px;
}
.theme-btn {
position: relative;
left: 15px;
width: 24px;
height: 24px;
margin-bottom: 14px;
background-image: url("./static/moon.svg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
cursor: pointer;
z-index: 100;
}
@media only screen and (max-width: 768px) {
.markdown-section {
padding: 10px;
}
}
</style>
<style>
.dark,
.dark .sidebar,
.dark blockquote,
.dark .sidebar a {
background-color: #0E1116;
color: #d3d3d3;
}
.dark .sidebar::-webkit-scrollbar-thumb {
background: hsla(0, 0%, 88%, 0.4);
}
.dark .sidebar::-webkit-scrollbar-track {
background: hsla(0, 0%, 53%, 0.1);
}
.dark .sidebar-toggle {
background-color: hsl(201deg 18% 19% / 80%) !important;
}
.dark .markdown-section h1,
.dark .markdown-section h2,
.dark .markdown-section h3,
.dark .markdown-section h4,
.dark .markdown-section strong,
.dark .anchor span {
color: #fff;
}
.dark .markdown-section tr:nth-child(2n) {
background-color: #1f282d;
}
.dark .markdown-section td,
.dark .markdown-section th {
border-color: #495e69;
}
.dark .markdown-section pre,
.dark .markdown-section code {
background-color: #34434b;
}
.dark .markdown-section code,
.dark .token.keyword,
.dark .token.function {
color: #f07178;
}
.dark .markdown-section pre > code,
.dark .token.punctuation {
color: #f3f3f3;
}
.dark .token.number,
.dark .token.boolean {
color: #ffcb6b;
}
.dark .github-corner svg {
color: #283339;
}
.dark .theme-btn {
background-image: url("./static/sun.svg");
}
</style>