Skip to content

Commit dde0666

Browse files
committed
more ts fixes
1 parent b0b39ad commit dde0666

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

configs/tsconfig-compass/tsconfig.common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"extends": "@mongodb-js/tsconfig-devtools/tsconfig.common.json",
33
"compilerOptions": {
44
"removeComments": false,
5-
"moduleResolution": "node16"
5+
"moduleResolution": "node16",
6+
"module": "node16"
67
}
78
}

packages/compass-components/src/components/document-list/document-actions-group.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { spacing } from '@leafygreen-ui/tokens';
44
import { Button, Icon, Tooltip } from '../leafygreen';
55
import type { Signal } from '../signal-popover';
66
import { SignalPopover } from '../signal-popover';
7+
import type { ButtonProps } from '@leafygreen-ui/button';
78

89
const actionsGroupContainer = css({
910
position: 'absolute',
@@ -83,8 +84,7 @@ function ActionButton({
8384
tooltipText,
8485
tooltipEnabled,
8586
...props
86-
}: // @ts-expect-error - LG Polymorphic wrapper confuses TS 5
87-
Partial<React.ComponentProps<typeof Button>> & {
87+
}: Partial<ButtonProps> & {
8888
tooltipText: string;
8989
tooltipEnabled: boolean;
9090
}) {

0 commit comments

Comments
 (0)