Skip to content

Commit

Permalink
Revision 0.32.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Nov 29, 2023
1 parent 4ccfe42 commit e266d50
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1213,11 +1213,11 @@ const T = Type.Object({
y: Type.Number()
})

const X = Value.Clean(T, null) // const X = null
const X = Value.Clean(T, null) // const 'X = null

const Y = Value.Clean(T, { x: 1 }) // const Y = { x: 1 }
const Y = Value.Clean(T, { x: 1 }) // const 'Y = { x: 1 }

const Z = Value.Clean(T, { x: 1, y: 2, z: 3 }) // const Z = { x: 1, y: 2 }
const Z = Value.Clean(T, { x: 1, y: 2, z: 3 }) // const 'Z = { x: 1, y: 2 }
```
<a name='values-default'></a>
Expand All @@ -1232,11 +1232,11 @@ const T = Type.Object({
y: Type.Number({ default: 0 })
})

const X = Value.Default(T, null) // const X = null - structurally invalid
const X = Value.Default(T, null) // const 'X = null - non-enumerable

const Y = Value.Default(T, { }) // const Y = { x: 0, y: 0 }
const Y = Value.Default(T, { }) // const 'Y = { x: 0, y: 0 }

const Z = Value.Default(T, { x: 1 }) // const Z = { x: 1, y: 0 }
const Z = Value.Default(T, { x: 1 }) // const 'Z = { x: 1, y: 0 }
```
<a name='values-cast'></a>
Expand Down

0 comments on commit e266d50

Please sign in to comment.