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
In practice, ModDefinition.metadata.version always exists for mods
It's currently marked as optional, so there are places where it must be defaulted or asserted to be non-null
Tricky to set as required directly on Metadata type because JS-defined bricks inherit from Metadata, but get their version from the Chrome runtime (based on browser extension version)
Implementation Sketch
Defined VersionedMetadata = SetRequired<Metadata, "version">
Modify ModDefinition type to require it
Fix type errors
The text was updated successfully, but these errors were encountered:
Context
ModDefinition.metadata.version
always exists for modsMetadata
type because JS-defined bricks inherit from Metadata, but get their version from the Chrome runtime (based on browser extension version)Implementation Sketch
VersionedMetadata = SetRequired<Metadata, "version">
ModDefinition
type to require itThe text was updated successfully, but these errors were encountered: