SpreadJS Documentation
Using TypeScript

You can add TypeScript support to SpreadJS. TypeScript provides strongly-typed access and better information about your code.

You can download TypeScript and get additional information from the TypeScript web site, http://www.typescriptlang.org/.

The TypeScript definition file for SpreadJS is located in the definition folder under the main product folder (SpreadJS\definition\gcspread.sheets.d.ts).

Use the following steps to add TypeScript support to SpreadJS.

  1. Add gcspread.sheets.d.ts and jquery.d.ts references to your typescript file.

    /// <reference path="path/jquery.d.ts" />
    /// <reference path="path/gcspread.sheets.d.ts" />

  2. Add code to your application. Information about SpreadJS is displayed as in the following examples.

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.