You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This release fixes the interfaces for primitive types not being exported, which caused ... has or is using name '...' from external module "..." but cannot be named.
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')classXextends$from(...){ ... }// Using the functionconstZ=struct.align(2).extend(Y,'Z',{ ... })
For parity with the new API, the @struct decorator now requires a name as the first parameter. This also means it is more difficult to accidently mess things up with a minifier mangling symbol names.