Skip to content

Commit 7de114a

Browse files
authored
fix: Remove default export in jsapi-types (#1092)
Fixes DHE build issue
1 parent 1b00840 commit 7de114a

5 files changed

Lines changed: 3 additions & 10 deletions

File tree

packages/jsapi-bootstrap/src/ApiBootstrap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
ModalBody,
66
ModalHeader,
77
} from '@deephaven/components';
8-
import type DhType from '@deephaven/jsapi-types';
8+
import type { dh as DhType } from '@deephaven/jsapi-types';
99
import Log from '@deephaven/log';
1010

1111
const log = Log.module('@deephaven/code-studio');

packages/jsapi-shim/src/dh.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The Deephaven API script isn't packaged as a module (yet), and is just included in index.html, exported to the global namespace
22
// This include file is simply a wrapper so that it behaves like a module, and can be mocked easily for unit tests
3-
import type dhType from '@deephaven/jsapi-types';
3+
import type { dh as dhType } from '@deephaven/jsapi-types';
44

55
declare global {
66
// eslint-disable-next-line vars-on-top,no-var
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
import dh from '@deephaven/jsapi-types';
2-
31
export * from '@deephaven/jsapi-types';
4-
5-
export default dh;

packages/jsapi-shim/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ export default shim;
44
export { default as dh } from './dh';
55
export { default as PropTypes } from './PropTypes';
66
export * from './dh.types';
7-
export type { default as dhType } from './dh.types';
7+
export type { dh as dhType } from './dh.types';

packages/jsapi-types/src/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
import type dh from './dh.types';
2-
31
export * from './dh.types';
4-
export default dh;

0 commit comments

Comments
 (0)