Skip to content

Commit 1fe3d69

Browse files
authored
Remove all from Expandable type (#4880)
treeGridState uses UNSTABLE_expandedKeys so we dont need it for the interface here
1 parent 5b492a4 commit 1fe3d69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@react-types/shared/src/collections.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export interface CollectionStateBase<T, C extends Collection<Node<T>> = Collecti
6969

7070
export interface Expandable {
7171
/** The currently expanded keys in the collection (controlled). */
72-
expandedKeys?: 'all' | Iterable<Key>,
72+
expandedKeys?: Iterable<Key>,
7373
/** The initial expanded keys in the collection (uncontrolled). */
74-
defaultExpandedKeys?: 'all' | Iterable<Key>,
74+
defaultExpandedKeys?: Iterable<Key>,
7575
/** Handler that is called when items are expanded or collapsed. */
7676
onExpandedChange?: (keys: Set<Key>) => any
7777
}

0 commit comments

Comments
 (0)