diff --git a/packages/react-components/react-utilities/etc/react-utilities.api.md b/packages/react-components/react-utilities/etc/react-utilities.api.md index d1d812dfd66ee1..3f97bd77da98b5 100644 --- a/packages/react-components/react-utilities/etc/react-utilities.api.md +++ b/packages/react-components/react-utilities/etc/react-utilities.api.md @@ -40,6 +40,18 @@ export function createPriorityQueue(compare: PriorityQueueCompareFn): Prio // @internal export function elementContains(parent: Node | null, child: Node | null): boolean; +// @public +export type EventData = { + type: undefined; + event: React_2.SyntheticEvent | Event; +} | { + type: Type; + event: TEvent; +}; + +// @public +export type EventHandler> = (ev: React_2.SyntheticEvent | Event, data: TData) => void; + // @public export type ExtractSlotProps = Exclude; diff --git a/packages/react-components/react-utilities/src/index.ts b/packages/react-components/react-utilities/src/index.ts index 8a7aeee89e21ed..489d392e1ac64e 100644 --- a/packages/react-components/react-utilities/src/index.ts +++ b/packages/react-components/react-utilities/src/index.ts @@ -33,6 +33,8 @@ export type { SlotComponentType, SlotOptions, InferredElementRefType, + EventData, + EventHandler, } from './compose/index'; export {