Skip to content
Snippets Groups Projects
Commit b50dbbc2 authored by David Sehnal's avatar David Sehnal
Browse files

Updated to TS 2.6

parent c131d7b9
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -18,6 +18,7 @@ namespace Selection {
// TODO: 'structure iterator'
// TODO: selection builders (linear / unique)
// TODO: spatial lookup
// TODO: If all structures in a selection are "singletons", collapse them into a single structure
}
export default Selection
\ No newline at end of file
......@@ -60,6 +60,7 @@ function createColumn<T>(type: Column.Type, field: Data.Field, value: (row: numb
class _TypedFrame implements TypedFrame<any> { // tslint:disable-line:class-name
header = this._frame.header;
[k: string]: any;
constructor(public _frame: Data.Frame, schema: FrameSchema) {
for (const k of Object.keys(schema)) {
Object.defineProperty(this, k, { value: createTypedCategory(k, schema[k], _frame), enumerable: true, writable: false, configurable: false });
......@@ -70,6 +71,7 @@ class _TypedFrame implements TypedFrame<any> { // tslint:disable-line:class-name
class _TypedCategory implements Table<any> { // tslint:disable-line:class-name
_rowCount = this._category.rowCount;
_columns: ReadonlyArray<string>;
[k: string]: any;
constructor(public _category: Data.Category, schema: Table.Schema, public _isDefined: boolean) {
const fieldKeys = Object.keys(schema);
this._columns = fieldKeys;
......
......@@ -7,6 +7,7 @@
"sourceMap": false,
"noUnusedLocals": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
//"downlevelIteration": true,
"lib": [ "es6", "dom" ],
"outDir": "build/js/src",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment