Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ianstormtaylor committed Jun 10, 2020
1 parent 6a2b0d5 commit e577bd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ But Superstruct is designed for validating data at runtime, so it throws (or ret
Superstruct allows you to define the shape of data you want to validate:

```js
import { assert, object, number, string, boolean, array } from 'superstruct'
import { assert, object, number, string, array } from 'superstruct'

const Article = object({
id: number(),
Expand Down Expand Up @@ -102,7 +102,7 @@ if (is(data, User)) {
Superstruct can also handle coercion of your data before validating it, for example to mix in default values:

```ts
import { assert, coerce, object, number, string, defaulted } from 'superstruct'
import { coerce, object, number, string, defaulted } from 'superstruct'

const User = object({
id: defaulted(number(), () => i++),
Expand Down

0 comments on commit e577bd1

Please sign in to comment.