Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-pousette committed Jan 28, 2022
1 parent 368d0d0 commit edce3bd
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit edce3bd

Please sign in to comment.