Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sana Malik committed Jan 30, 2025
1 parent f57fc8a commit c86e72f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@react-spectrum/labeledvalue/docs/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {DateTime, LabeledValueBaseProps} from '@react-spectrum/labeledvalue/src/LabeledValue';
import {RangeValue} from '@react-types/shared';
import { ReactNode } from 'react';
import {ReactNode} from 'react';

// The doc generator is not smart enough to handle the real types for LabeledValue so this is a simpler one.
export interface LabeledValueProps extends LabeledValueBaseProps {
Expand Down
3 changes: 2 additions & 1 deletion packages/@react-spectrum/labeledvalue/src/LabeledValue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ interface StringListProps<T extends string[]> {
/** Formatting options for the value. */
formatOptions?: Intl.ListFormatOptions
}

interface ReactNodeProps<T extends ReactNode> {
/** The value to display. */
value: T
value: T,
/** Formatting options for the value. */
formatOptions?: never
}
Expand Down

0 comments on commit c86e72f

Please sign in to comment.