Skip to content

Commit 5c6ffbb

Browse files
bsunderhusmainframev
authored andcommitted
chore: keep render function on root signature
1 parent bd47231 commit 5c6ffbb

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

packages/react-components/react-migration-v0-v9/library/etc/react-migration-v0-v9.api.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,14 @@ export const input: {
155155
};
156156

157157
// @public (undocumented)
158-
export const ItemLayout: React_2.ForwardRefExoticComponent<Omit<ItemLayoutSlots, "root"> & Omit<Omit<{
158+
export const ItemLayout: React_2.ForwardRefExoticComponent<Omit<ItemLayoutSlots, "root"> & Omit<{
159159
as?: "div" | undefined;
160160
} & Omit<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
161161
ref?: ((instance: HTMLDivElement | null) => void) | React_2.RefObject<HTMLDivElement> | null | undefined;
162162
}, "children"> & {
163163
children?: React_2.ReactNode | SlotRenderFunction<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
164164
ref?: ((instance: HTMLDivElement | null) => void) | React_2.RefObject<HTMLDivElement> | null | undefined;
165165
}>;
166-
}, "children"> & {
167-
children?: React_2.ReactNode;
168166
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
169167

170168
// @public (undocumented)

packages/react-components/react-utilities/etc/react-utilities.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function canUseDOM(): boolean;
2222
export const clamp: (value: number, min: number, max: number) => number;
2323

2424
// @public
25-
export type ComponentProps<Slots extends SlotPropsRecord, Primary extends keyof Slots = 'root'> = Omit<Slots, Primary & 'root'> & PropsWithoutRef<WithoutSlotRenderFunction<ExtractSlotProps<Slots[Primary]>>>;
25+
export type ComponentProps<Slots extends SlotPropsRecord, Primary extends keyof Slots = 'root'> = Omit<Slots, Primary & 'root'> & PropsWithoutRef<ExtractSlotProps<Slots[Primary]>>;
2626

2727
// @public
2828
export type ComponentState<Slots extends SlotPropsRecord> = {

packages/react-components/react-utilities/src/compose/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export type ComponentProps<Slots extends SlotPropsRecord, Primary extends keyof
184184
// special and always gets className and style props, per RFC https://github.com/microsoft/fluentui/pull/18983
185185
Omit<Slots, Primary & 'root'> &
186186
// Include all of the props of the primary slot inline in the component's props
187-
PropsWithoutRef<WithoutSlotRenderFunction<ExtractSlotProps<Slots[Primary]>>>;
187+
PropsWithoutRef<ExtractSlotProps<Slots[Primary]>>;
188188

189189
/**
190190
* Defines the State object of a component given its slots.

0 commit comments

Comments
 (0)