Skip to content

Commit

Permalink
README.md fixes (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
danwit committed Sep 2, 2021
1 parent 6df3238 commit 56df1d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ The context object is an advanced feature and can be used to obtain additional c

1. first argument of factory functions
2. third argument of the lookup callback of `ref` prop schema's (see below)
3. third argument of the `deserializer` of a custom propSchema
3. second argument of the `deserializer` of a custom propSchema

When deserializing a model elememt / property, the following fields are available on the context object:
When deserializing a model element / property, the following fields are available on the context object:

- `json`: Returns the complete current json object that is being deserialized
- `target`: The object currently being deserialized. This is the object that is returned from the factory function.
Expand Down Expand Up @@ -730,7 +730,7 @@ When using typescript, the decorator can also be used on fields declared as cons
```ts
class Todo {
@serializable(primitive())
title // shorthand for primitves
title // shorthand for primitives

@serializable
done
Expand Down

0 comments on commit 56df1d0

Please sign in to comment.