From 4f619edd20e9b5b7d018a35a433831701ef03e6c Mon Sep 17 00:00:00 2001 From: Eugenio Arosteguy Date: Tue, 19 Sep 2017 12:23:15 -0300 Subject: [PATCH] types for tabulator --- types/tabulator/index.d.ts | 13 +++++++++++++ types/tabulator/tabulator-tests.ts | 1 + types/tabulator/tsconfig.json | 22 ++++++++++++++++++++++ types/tabulator/tslint.json | 1 + 4 files changed, 37 insertions(+) create mode 100644 types/tabulator/index.d.ts create mode 100644 types/tabulator/tabulator-tests.ts create mode 100644 types/tabulator/tsconfig.json create mode 100644 types/tabulator/tslint.json diff --git a/types/tabulator/index.d.ts b/types/tabulator/index.d.ts new file mode 100644 index 0000000000..146a5ad9e0 --- /dev/null +++ b/types/tabulator/index.d.ts @@ -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; +} diff --git a/types/tabulator/tabulator-tests.ts b/types/tabulator/tabulator-tests.ts new file mode 100644 index 0000000000..9c2a22cacb --- /dev/null +++ b/types/tabulator/tabulator-tests.ts @@ -0,0 +1 @@ +let tab = new tabulatorLib(); diff --git a/types/tabulator/tsconfig.json b/types/tabulator/tsconfig.json new file mode 100644 index 0000000000..32db9cfaad --- /dev/null +++ b/types/tabulator/tsconfig.json @@ -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" + ] +} diff --git a/types/tabulator/tslint.json b/types/tabulator/tslint.json new file mode 100644 index 0000000000..c17ac4dd6d --- /dev/null +++ b/types/tabulator/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dtslint.json" }