Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Jul 27, 2023
1 parent 9726adc commit 57cc76c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,7 @@ ValuePointer.Set(A, '/z', 1) // const A' = { x: 1, y: 1,
### Transform
Use Transform to apply codec functions to a type. The return schema will be that of the given type but will infer as the codecs `decode` function return type. Transform is designed with the Decode and Encode functions which can be used for automatic encode and decode of JSON values. The following shows transforming Date objects to and from number types.
Use Transform to apply codec functions to a type. The return schema will be that of the given type but will infer as the codecs `decode` function return type. Transform is designed to be used with the Decode and Encode functions to handle automatic encode and decode of JSON values. The following shows transforming Date objects to and from number types.
```typescript
const T = Value.Transform(Type.Number(), { // const T = {
Expand Down

0 comments on commit 57cc76c

Please sign in to comment.