Skip to content

Commit

Permalink
chore: keep render function on root signature
Browse files Browse the repository at this point in the history
  • Loading branch information
bsunderhus committed Aug 22, 2024
1 parent 690ac29 commit 4b3bba1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,14 @@ export const input: {
};

// @public (undocumented)
export const ItemLayout: React_2.ForwardRefExoticComponent<Omit<ItemLayoutSlots, "root"> & Omit<Omit<{
export const ItemLayout: React_2.ForwardRefExoticComponent<Omit<ItemLayoutSlots, "root"> & Omit<{
as?: "div" | undefined;
} & Omit<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
ref?: ((instance: HTMLDivElement | null) => void) | React_2.RefObject<HTMLDivElement> | null | undefined;
}, "children"> & {
children?: React_2.ReactNode | SlotRenderFunction<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
ref?: ((instance: HTMLDivElement | null) => void) | React_2.RefObject<HTMLDivElement> | null | undefined;
}>;
}, "children"> & {
children?: React_2.ReactNode;
}, "ref"> & React_2.RefAttributes<HTMLDivElement>>;

// @public (undocumented)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function canUseDOM(): boolean;
export const clamp: (value: number, min: number, max: number) => number;

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

// @public
export type ComponentState<Slots extends SlotPropsRecord> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export type ComponentProps<Slots extends SlotPropsRecord, Primary extends keyof
// special and always gets className and style props, per RFC https://github.com/microsoft/fluentui/pull/18983
Omit<Slots, Primary & 'root'> &
// Include all of the props of the primary slot inline in the component's props
PropsWithoutRef<WithoutSlotRenderFunction<ExtractSlotProps<Slots[Primary]>>>;
PropsWithoutRef<ExtractSlotProps<Slots[Primary]>>;

/**
* Defines the State object of a component given its slots.
Expand Down

0 comments on commit 4b3bba1

Please sign in to comment.