You can add TypeScript support to SpreadJS. TypeScript provides strongly-typed access and better information about your code.
For more information, see Using TypeScript.