Skip to content

Commit

Permalink
Merge pull request #69 from hckrnews/feature/validation
Browse files Browse the repository at this point in the history
Minor tweaks, fix the license type in the package
  • Loading branch information
w3nl authored Mar 18, 2021
2 parents 1a26c3b + e3517fa commit 97bda8e
Show file tree
Hide file tree
Showing 5 changed files with 220 additions and 204 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,23 @@ const myAddress = Address.create({
city: 'Example',
country: 'The Netherlands'
})

console.log(myAddress)

{
street: 'Abc',
number: 42,
postalCode: '1234AB',
city: 'Example',
country: 'The Netherlands'
}
```

Example usage without a schema:
...

```javascript
const ObjectWithoutSchema = Obj()
const flatter = ObjectWithoutSchema.create({
const flatter = Obj().create({
a: 1,
b: 2,
c: [3, 4],
Expand Down
Loading

0 comments on commit 97bda8e

Please sign in to comment.