Skip to content

Commit

Permalink
Merge pull request #126 from nomic-ai/nom-1521-export-types
Browse files Browse the repository at this point in the history
exporting types
  • Loading branch information
bmschmidt committed Jul 19, 2024
2 parents d258f57 + 0df400b commit bbff91f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/deepscatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
9 changes: 9 additions & 0 deletions src/tile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Vector> {
const existing = this._batch?.getChild(colname);
if (existing) {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"include": [
"src/**/*.ts"
"src/**/*.ts",
"src/shared.d.ts"
],
"exclude": [
"node_modules/**/*"
Expand Down

0 comments on commit bbff91f

Please sign in to comment.