From edce3bdb084d857e1cc47c9f08100c069ed41834 Mon Sep 17 00:00:00 2001 From: Marcus Pousette Date: Fri, 28 Jan 2022 11:27:47 +0100 Subject: [PATCH] Update readme --- README.md | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index e40392cd..ef3527a5 100644 --- a/README.md +++ b/README.md @@ -190,23 +190,10 @@ class TestStruct { @field({ type: 'u8', index: 0 }) public b: number; } - -const schema = generateSchemas([TestStruct]).get(TestStruct) -expect(schema).toEqual({ - fields: [ - [ - "b", - "u8", - ], - [ - "a", - "u8", - ], - ], - kind: "struct", -}); ``` +This will make *b* serialized into the buffer before *a*. + ## Inheritance Schema generation with class inheritance is not supported (yet)