Skip to content

Commit

Permalink
Re-use SelectionT (deephaven#1909)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Apr 11, 2024
1 parent 599902d commit 5fd74dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/components/src/spectrum/utils/itemUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { isValidElement, Key, ReactElement, ReactNode } from 'react';
import { SpectrumPickerProps } from '@adobe/react-spectrum';
import type { ItemRenderer } from '@react-types/shared';
import Log from '@deephaven/log';
import { KeyedItem } from '@deephaven/utils';
import { KeyedItem, SelectionT } from '@deephaven/utils';
import { Item, ItemProps, Section, SectionProps } from '../shared';
import { PopperOptions } from '../../popper';

Expand Down Expand Up @@ -33,7 +33,7 @@ export type ItemOrSection = ItemElementOrPrimitive | SectionElement;
*/
export type ItemKey = Key | boolean;

export type ItemSelection = 'all' | Set<ItemKey>;
export type ItemSelection = SelectionT<ItemKey>;

/**
* Augment the Spectrum selection change handler type to include boolean keys.
Expand Down

0 comments on commit 5fd74dd

Please sign in to comment.