diff --git a/src/deepscatter.ts b/src/deepscatter.ts index 8ce9c73d6..735074a46 100644 --- a/src/deepscatter.ts +++ b/src/deepscatter.ts @@ -4,3 +4,4 @@ export { Deeptable } from './Deeptable'; export { LabelMaker } from './label_rendering'; export { dictionaryFromArrays } from './utilityFunctions'; export { Tile } from './tile'; +export * as types from './shared.d'; diff --git a/src/tile.ts b/src/tile.ts index 0aa51da00..d410d3b8c 100644 --- a/src/tile.ts +++ b/src/tile.ts @@ -130,6 +130,15 @@ export class Tile { this.transformation_holder[colname] = undefined; } + /** + * Lazily fetch the named column from the tile. If the column is not present, it will be + * generated by applying the transformation function associated with it. + * + * + * + * @param colname The name of the column to retrive. + * @returns An Arrow Vector of the column. + */ async get_column(colname: string): Promise { const existing = this._batch?.getChild(colname); if (existing) { diff --git a/tsconfig.json b/tsconfig.json index d82263aad..1c57f0ab8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "include": [ - "src/**/*.ts" + "src/**/*.ts", + "src/shared.d.ts" ], "exclude": [ "node_modules/**/*"