Skip to content

Commit 113b259

Browse files
committed
review comments
1 parent 8fffdf8 commit 113b259

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/@react-aria/collections/src/BaseCollection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type FilterFn<T> = (textValue: string, node: Node<T>) => boolean;
2121

2222
/** An immutable object representing a Node in a Collection. */
2323
export class CollectionNode<T> implements Node<T> {
24-
static readonly type;
24+
static readonly type: string;
2525
readonly type: string;
2626
readonly key: Key;
2727
readonly value: T | null = null;

packages/react-aria-components/src/Collection.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ interface SectionContextValue {
9999

100100
export const SectionContext = createContext<SectionContextValue | null>(null);
101101

102-
// TODO: should I update this since it is deprecated?
103102
/** @deprecated */
104103
export const Section = /*#__PURE__*/ createBranchComponent('section', <T extends object>(props: SectionProps<T>, ref: ForwardedRef<HTMLElement>, section: Node<T>): JSX.Element => {
105104
let {name, render} = useContext(SectionContext)!;

0 commit comments

Comments
 (0)