Skip to content

Commit 808aaed

Browse files
bsunderhusmainframev
authored andcommitted
chore: updates getSlotsNext tests
1 parent a7919ba commit 808aaed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/react-components/react-utilities/src/compose/deprecated/getSlotsNext.test.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import * as React from 'react';
22
import { getSlotsNext } from './getSlotsNext';
3-
import type { ExtractSlotProps, Slot, SlotComponentType, UnknownSlotProps } from '../types';
3+
import type { ExtractSlotProps, Slot, SlotComponentType, SlotPropsDataType } from '../types';
44
import { resolveShorthand } from './resolveShorthand';
55
import { SLOT_RENDER_FUNCTION_SYMBOL } from '../constants';
66

7-
// eslint-disable-next-line deprecation/deprecation
8-
const resolveShorthandMock = <Props extends UnknownSlotProps>(props: Props): SlotComponentType<Props> => {
7+
const resolveShorthandMock = <Props extends SlotPropsDataType>(props: Props): SlotComponentType<Props> => {
98
// casting is required here as SlotComponent is a callable
109
return { ...props } as SlotComponentType<Props>;
1110
};

0 commit comments

Comments
 (0)