Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
colinhacks committed Sep 12, 2023
1 parent 64dcc8e commit 18115a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
<br />
<a href="https://speakeasyapi.dev/">speakeasyapi.dev</a>
<br />
<p width="200px">SDKs, Terraform, Docs. Your API made enterprise-ready.</p>
<p width="200px">SDKs, Terraform, Docs.<br/>Your API made enterprise-ready.</p>
</td>
<td align="center">
<a href="https://glow.app/">
Expand Down Expand Up @@ -311,8 +311,6 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
<br />
<a href="https://seasoned.cc">seasoned.cc</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://www.bamboocreative.nz/">
<img src="https://avatars.githubusercontent.com/u/41406870?v=4" width="150px;" alt="Bamboo Creative logo" />
Expand Down
11 changes: 4 additions & 7 deletions deno/lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
<br />
<a href="https://speakeasyapi.dev/">speakeasyapi.dev</a>
<br />
<p width="200px">SDKs, Terraform, Docs. Your API made enterprise-ready.</p>
<p width="200px">SDKs, Terraform, Docs.<br/>Your API made enterprise-ready.</p>
</td>
<td align="center">
<a href="https://glow.app/">
Expand Down Expand Up @@ -311,8 +311,6 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
<br />
<a href="https://seasoned.cc">seasoned.cc</a>
</td>
</tr>
<tr>
<td align="center">
<a href="https://www.bamboocreative.nz/">
<img src="https://avatars.githubusercontent.com/u/41406870?v=4" width="150px;" alt="Bamboo Creative logo" />
Expand Down Expand Up @@ -709,7 +707,7 @@ z.string().regex(regex);
z.string().includes(string);
z.string().startsWith(string);
z.string().endsWith(string);
z.string().datetime(); // defaults to UTC, see below for options
z.string().datetime(); // ISO 8601; default is without UTC offset, see below for options
z.string().ip(); // defaults to IPv4 and IPv6, see below for options

// transformations
Expand Down Expand Up @@ -748,7 +746,7 @@ z.string().ip({ message: "Invalid IP address" });
### ISO datetimes
The `z.string().datetime()` method defaults to UTC validation: no timezone offsets with arbitrary sub-second decimal precision.
The `z.string().datetime()` method enforces ISO 8601; default is no timezone offsets and arbitrary sub-second decimal precision.
```ts
const datetime = z.string().datetime();
Expand Down Expand Up @@ -2813,10 +2811,9 @@ This more declarative API makes schema definitions vastly more concise.

[https://github.com/pelotom/runtypes](https://github.com/pelotom/runtypes)

Good type inference support. They DO support readonly types, which Zod does not.
Good type inference support.

- Supports "pattern matching": computed properties that distribute over unions
- Supports readonly types
- Missing object methods: (deepPartial, merge)
- Missing nonempty arrays with proper typing (`[T, ...T[]]`)
- Missing promise schemas
Expand Down

0 comments on commit 18115a8

Please sign in to comment.