minor fixes to type definitions for datatables.net-fixedcolumns and datatables.net-select (#36852)

* Create index.d.ts

* Create LICENSE

* Create README.md

* Update README.md

* Create package.json

* Delete LICENSE

* Delete README.md

* Delete package.json

* Create datatables.net-fixedcolumns-tests.ts

* Create tslint.json

* Create tsconfig.json

* changes after tslint

* formatting

* formatting

* formatting

* correct return types
add deprecation comments

* Type definitions for datatables.net-keytable

* @armanio123: "use a string literal type to improve the dev experience"

* fix call FixedColumns Api

* add cell/cells methods
This commit is contained in:
Konstantin 2019-07-18 20:24:06 +05:00 committed by Andrew Branch
parent 7172b31bad
commit fccea923fb
2 changed files with 25 additions and 5 deletions

View File

@ -22,7 +22,7 @@ declare namespace DataTables {
* The algorithm to use. This can be one of (see below for full description):
* 'none' | 'semiauto' | 'auto'
*/
heightMatch?: string;
heightMatch?: 'none' | 'semiauto' | 'auto';
/*
* The number of columns on the left hand side of the table to fix in place.
@ -36,10 +36,6 @@ declare namespace DataTables {
}
interface Api {
fixedColumns: FixedColumnsMethodsModel;
}
interface FixedColumnsMethodsModel {
/*
* Get FixedColumns Api
*/

View File

@ -81,4 +81,28 @@ declare namespace DataTables {
*/
deselect(): Api;
}
interface CellMethods {
/**
* Select cell
*/
select(): Api;
/**
* Deselect a cell
*/
deselect(): Api;
}
interface CellsMethods {
/**
* Select multiple cells
*/
select(): Api;
/**
* Deselect cells
*/
deselect(): Api;
}
}