you can't have static method of StorageFile type without having any instance?
Well, you can, but StorageFile shouldn't really be a public object name anyway, since it's only useful via require("Storage").open.
StorageFile
require("Storage").open
I guess there's a lot to be said for just making Storage public so you can do Storage.open though
Storage
Storage.open
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Well, you can, but
StorageFile
shouldn't really be a public object name anyway, since it's only useful viarequire("Storage").open
.I guess there's a lot to be said for just making
Storage
public so you can doStorage.open
though