Skip to content

Commit

Permalink
chore(react-utilities): update api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Dec 20, 2024
1 parent 401341a commit 296644f
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function getEventClientCoords(event: TouchOrMouseEvent): {
};

// @public
export const getIntrinsicElementProps: <Props extends UnknownSlotProps, ExcludedPropKeys extends Extract<keyof Props, string> = never>(tagName: NonNullable<Props["as"]>, props: Props & React_2.RefAttributes<InferredElementRefType<Props>>, excludedPropNames?: ExcludedPropKeys[] | undefined) => DistributiveOmit<Props, ExcludedPropKeys | Exclude<keyof Props, "as" | keyof HTMLAttributes>>;
export const getIntrinsicElementProps: <Props extends UnknownSlotProps, ExcludedPropKeys extends Extract<keyof Props, string> = never>(tagName: NonNullable<Props["as"]>, props: Props & React_2.RefAttributes<InferredElementRefType<Props>>, excludedPropNames?: ExcludedPropKeys[]) => DistributiveOmit<Props, ExcludedPropKeys | Exclude<keyof Props, "as" | keyof HTMLAttributes>>;

// @public @deprecated
export function getNativeElementProps<TAttributes extends React_2.HTMLAttributes<any>>(tagName: string, props: {}, excludedPropNames?: string[]): TAttributes;
Expand All @@ -84,7 +84,7 @@ export function getParent(child: Node | null, options?: GetParentOptions): Node
export const getPartitionedNativeProps: <Props extends Pick<React_2.HTMLAttributes<HTMLElement>, "style" | "className">, ExcludedPropKeys extends Extract<keyof Props, string> = never>({ primarySlotTagName, props, excludedPropNames, }: {
primarySlotTagName: keyof JSX.IntrinsicElements;
props: Props;
excludedPropNames?: ExcludedPropKeys[] | undefined;
excludedPropNames?: ExcludedPropKeys[];
}) => {
root: {
style: React_2.CSSProperties | undefined;
Expand All @@ -94,7 +94,7 @@ export const getPartitionedNativeProps: <Props extends Pick<React_2.HTMLAttribut
};

// @internal
export const getRTLSafeKey: (key: string, dir: 'ltr' | 'rtl') => string;
export const getRTLSafeKey: (key: string, dir: "ltr" | "rtl") => string;

// @public @deprecated
export function getSlots<R extends SlotPropsRecord>(state: ComponentState<R>): {
Expand Down Expand Up @@ -327,7 +327,7 @@ export type UnknownSlotProps = Pick<React_2.HTMLAttributes<HTMLElement>, 'childr
};

// @internal
export function useAnimationFrame(): readonly [(fn: () => void, delay?: number | undefined) => number, () => void];
export function useAnimationFrame(): readonly [(fn: () => void, delay?: number) => number, () => void];

// @internal
export const useControllableState: <State>(options: UseControllableStateOptions<State>) => [State, React_2.Dispatch<React_2.SetStateAction<State>>];
Expand Down Expand Up @@ -386,7 +386,7 @@ export function useScrollbarWidth(options: UseScrollbarWidthOptions): number | u
export function useSelection(params: SelectionHookParams): readonly [Set<SelectionItemId>, SelectionMethods];

// @internal
export function useTimeout(): readonly [(fn: () => void, delay?: number | undefined) => number, () => void];
export function useTimeout(): readonly [(fn: () => void, delay?: number) => number, () => void];

// (No @packageDocumentation comment for this package)

Expand Down

0 comments on commit 296644f

Please sign in to comment.