Skip to content

0.3.7

Pre-release
Pre-release

Choose a tag to compare

@james-pre james-pre released this 02 Aug 02:27
· 14 commits to main since this release
v0.3.7
744cabe

This release adds chainable packed and align(n) helpers to the struct function and @struct decorator. These can be used to skip importing yet another module. packed is a modified struct while align returns a modified struct.

For example:

// Using the decorator
@struct.packed('X')
class X extends $from(...) { ... }

// Using the function
const Z = struct.align(2).extend(Y, 'Z', { ... })