- Notifications
You must be signed in to change notification settings - Fork689
TypeScript
Andrey Gershun edited this pageMay 31, 2015 ·2 revisions
AlaSQLdist includes definition file for the library: Simply include it to your TypeScript project:
/// <reference path="alasql.d.ts" />varalasql=require('alasql');
After it TypeScript compiler will check syntax ofalasql() function and options.
// Good test var res = alasql('=2*3',1,23,4,5);// Ok// Bad test alasql('=2*3',1,23,4,5);// This combination should generate type error© 2014-2026,Andrey Gershun &Mathias Rangel Wulff
Please help improve the documentation by opening a PR on thewiki repo