From a5ea44905662a28ba8ad1861da0f29b3e344b9e9 Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sat, 30 Nov 2024 12:17:32 +0100 Subject: [PATCH] Try a different Field formatting --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 16bbe31..ab8ecda 100644 --- a/README.md +++ b/README.md @@ -212,10 +212,12 @@ Here’s a summary of all codecs (with slightly simplified type annotations) and fields
(mapping: {
  field1: Codec<T1>,
- field2: Field<T2,
-  {optional: true}>,
- field3: Field<T3,
-  {renameFrom: "field_3"}>,
+ field2:
+  Field<T2,
+   { optional: true }>,
+ field3:
+  Field<T3,
+   { renameFrom: "field_3" }>,
  fieldN: Codec<TN>
 }) => Codec<{
  field1: T1,