types for tabulator

This commit is contained in:
Eugenio Arosteguy
2017-09-19 12:23:15 -03:00
parent 9e5e85d32f
commit 4f619edd20
4 changed files with 37 additions and 0 deletions

13
types/tabulator/index.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
export as namespace tabulatorLib;
// TypeScript Version: 2.2
export = Tabulator;
/*~ Write your module's methods and properties in this class */
declare class Tabulator {
constructor();
// myMethod(opts: Tabulator.chartType): number;
defaultShowAttribute: string;
toMatrix(datum: object): object;
toHtmlTable(matrix: object): any;
}

View File

@@ -0,0 +1 @@
let tab = new tabulatorLib();

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"tabulator-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dtslint.json" }