Skip to content

Commit

Permalink
Fixed props types (deephaven#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Jul 5, 2024
1 parent 0c78669 commit 9cee6ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/ui/src/js/src/elements/hooks/useListViewProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ReactElement } from 'react';
import type { SelectionMode } from '@react-types/shared';
import { ListViewProps as DHListViewProps } from '@deephaven/components';
import { ListViewProps as DHListViewJSApiProps } from '@deephaven/jsapi-components';
import { ObjectViewProps } from '../ObjectView';
import ObjectView, { ObjectViewProps } from '../ObjectView';
import {
SerializedSelectionProps,
useSelectionProps,
Expand All @@ -11,7 +11,7 @@ import {
type Density = Required<DHListViewProps>['density'];

type WrappedDHListViewJSApiProps = Omit<DHListViewJSApiProps, 'table'> & {
children: ReactElement<ObjectViewProps>;
children: ReactElement<ObjectViewProps, typeof ObjectView>;
};

type WrappedDHListViewProps = Omit<
Expand Down
4 changes: 2 additions & 2 deletions plugins/ui/src/js/src/elements/hooks/usePickerProps.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PickerProps as DHPickerProps } from '@deephaven/components';
import { PickerProps as DHPickerJSApiProps } from '@deephaven/jsapi-components';
import { ReactElement } from 'react';
import { ObjectViewProps } from '../ObjectView';
import ObjectView, { ObjectViewProps } from '../ObjectView';
import {
SerializedFocusEventCallback,
useFocusEventCallback,
Expand All @@ -26,7 +26,7 @@ export interface SerializedPickerEventProps {
}

type WrappedDHPickerJSApiProps = Omit<DHPickerJSApiProps, 'table'> & {
children: ReactElement<ObjectViewProps>;
children: ReactElement<ObjectViewProps, typeof ObjectView>;
};

export type SerializedPickerProps = (
Expand Down

0 comments on commit 9cee6ef

Please sign in to comment.