-
Notifications
You must be signed in to change notification settings - Fork 659
TypeScript
Andrey Gershun edited this page May 31, 2015
·
2 revisions
AlaSQL dist
includes definition file for the library: Simply include it to your TypeScript project:
/// <reference path="alasql.d.ts" />
var alasql = require('alasql');
After it TypeScript compiler will check syntax of alasql()
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-2024, Andrey Gershun & Mathias Rangel Wulff
Please help improve the documentation by opening a PR on the wiki repo