const itemStack: SaveCodec<ItemStack>
const
SaveCodec
ItemStack
The codec of an item stack inside a kit’s or a game’s own key: a shop that keeps stacks stores itemStack.toSave(stack) and reads itemStack.fromSave(saved).
itemStack.toSave(stack)
itemStack.fromSave(saved)