Skip to content

Commit

Permalink
Merge 0c1617b into 128af36
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjeker committed Mar 5, 2020
2 parents 128af36 + 0c1617b commit c811409
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 @@ -650,7 +650,7 @@ expect(plain['childrenCollection.2.label']).toEqual('Bar5');

In Marshal everything is compiled down to a highly optimized JS function. That means when you
want to add another serialization target, you have to write compiler templates. But it sounds
scarier than it is. Here's an example on how to convert a date to a ISO format for json transportation.
scarier than it is. Here's an example on how to convert a date to a ISO format for JSON transportation.

```typescript
import {registerConverterCompiler} from '@marcj/marshal';
Expand All @@ -666,7 +666,7 @@ registerConverterCompiler('MyTarget', 'class', 'date', (setter: string, accessor
});
```
To use your custom traget, you can use these jit functions:
To use your custom target, you can use these JIT functions:
```typescript
import {ClassType, getClassName} from "@marcj/estdlib";
Expand Down

0 comments on commit c811409

Please sign in to comment.