Skip to content

Commit

Permalink
refactor: Moved NewTableColumnTypes to jsapi-utils (#2244)
Browse files Browse the repository at this point in the history
Moved `NewTableColumnTypes` to jsapi-utils

resolves #2239
  • Loading branch information
bmingles authored Oct 3, 2024
1 parent d2c6eab commit 92b133b
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@deephaven/icons": "file:../icons",
"@deephaven/jsapi-bootstrap": "file:../jsapi-bootstrap",
"@deephaven/jsapi-types": "^1.0.0-dev0.34.0",
"@deephaven/jsapi-utils": "file:../jsapi-utils",
"@deephaven/log": "file:../log",
"@deephaven/react-hooks": "file:../react-hooks",
"@deephaven/storage": "file:../storage",
Expand Down
2 changes: 1 addition & 1 deletion packages/console/src/csv/CsvTypeParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Papa, {
} from 'papaparse';
// Intentionally using isNaN rather than Number.isNaN
/* eslint-disable no-restricted-globals */
import NewTableColumnTypes from './NewTableColumnTypes';
import { NewTableColumnTypes } from '@deephaven/jsapi-utils';
import makeZipStreamHelper from './ZipStreamHelper';

// Initially column types start as unknown
Expand Down
1 change: 0 additions & 1 deletion packages/console/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@ export * from './console-history';
export * from './monaco';
export { default as LogView } from './log/LogView';
export { default as HeapUsage } from './HeapUsage';
export { default as NewTableColumnTypes } from './csv/NewTableColumnTypes';
1 change: 1 addition & 0 deletions packages/console/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{ "path": "../components" },
{ "path": "../jsapi-bootstrap" },
{ "path": "../jsapi-shim" },
{ "path": "../jsapi-utils" },
{ "path": "../log" },
{ "path": "../storage" },
{ "path": "../test-utils" },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Valid column types to be used for a call to newTable.
*/
class NewTableColumnTypes {
export class NewTableColumnTypes {
static INTEGER = 'int';

static LONG = 'long';
Expand Down
1 change: 1 addition & 0 deletions packages/jsapi-utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export * from './Formatter';
export { default as FormatterUtils } from './FormatterUtils';
export * from './FormatterUtils';
export * from './MessageUtils';
export * from './NewTableColumnTypes';
export * from './NoConsolesError';
export * from './SessionUtils';
export * from './Settings';
Expand Down

0 comments on commit 92b133b

Please sign in to comment.