Skip to content

Commit

Permalink
Try a different Field formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Nov 30, 2024
1 parent b550256 commit a5ea449
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,12 @@ Here’s a summary of all codecs (with slightly simplified type annotations) and
<th><a href="#fields">fields</a></th>
<td><pre>(mapping: {
field1: Codec&lt;T1&gt;,
field2: Field&lt;T2,
{optional: true}&gt;,
field3: Field&lt;T3,
{renameFrom: "field_3"}&gt;,
field2:
Field&lt;T2,
{ optional: true }&gt;,
field3:
Field&lt;T3,
{ renameFrom: "field_3" }&gt;,
fieldN: Codec&lt;TN&gt;
}) =&gt; Codec&lt;{
field1: T1,
Expand Down

0 comments on commit a5ea449

Please sign in to comment.