Skip to content

Commit

Permalink
Work
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviendelangle committed Oct 4, 2024
1 parent e387b13 commit 454e674
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { PickerAnyValueManagerV8, PickerManagerProperties } from '../../../model
import { useLocalizationContext } from '../useUtils';
import {
UseFieldWithKnownDOMStructureParameters,
UseFieldLegacyForwardedProps,
UseFieldAccessibleForwardedProps,
UseFieldResponse,
UseFieldForwardedProps,
} from './useField.types';
Expand All @@ -13,10 +11,9 @@ import { useFieldLegacyDOMStructure } from './useFieldLegacyDOMStructure';

export const useField = <
TManager extends PickerAnyValueManagerV8,
TForwardedProps extends
PickerManagerProperties<TManager>['enableAccessibleFieldDOMStructure'] extends false
? UseFieldLegacyForwardedProps
: UseFieldAccessibleForwardedProps,
TForwardedProps extends UseFieldForwardedProps<
PickerManagerProperties<TManager>['enableAccessibleFieldDOMStructure']
>,
>(
parameters: UseFieldParameters<TManager, TForwardedProps>,
): UseFieldResponse<
Expand Down

0 comments on commit 454e674

Please sign in to comment.