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
Currently, it's only possible to import a default Memory type which has a { initial: 1 } value which cannot be overwritten with in any way. See #86
The updated syntax should convert Memory type to a generic.
New syntax:
// imports should look like soimport{memory: Memory<{initial: 10,max: 20}>}from'env';// declarations note the dropped initializer syntaxconstmemory: Memory<{initial: 10,max: 100}>;// default Memory type should remain at { initial: 10 }, but the <> should be kept for consistencyconstmemory: Memory<>;
Acceptance Criteria
Tests
Tests pass
Updated examples and demos
The text was updated successfully, but these errors were encountered:
Goal
Support custom memory declarations and imports.
Overview
Currently, it's only possible to import a default
Memory
type which has a{ initial: 1 }
value which cannot be overwritten with in any way. See #86The updated syntax should convert
Memory
type to a generic.New syntax:
Acceptance Criteria
The text was updated successfully, but these errors were encountered: