Thanks Jon, that’s a very good point. This is something that was overseen as I wrote the article. I have updated the article with a note that the code is written in Typescript.
Creator of Sunflower Land. Come help us build the future of Web3 gaming! https://github.com/sunflower-land/sunflower-land