Skip to content

Commit 7099472

Browse files
committed
use our own RefAttributes type for getIntrinsicElementProps
1 parent 2ae1dc3 commit 7099472

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22
import { getNativeElementProps } from '../utils/getNativeElementProps';
33
import type { InferredElementRefType, UnknownSlotProps } from './types';
4-
import type { DistributiveOmit } from '../utils/types';
4+
import type { DistributiveOmit, RefAttributes } from '../utils/types';
55

66
// eslint-disable-next-line @typescript-eslint/no-explicit-any
77
type HTMLAttributes = React.HTMLAttributes<any>;
@@ -19,7 +19,7 @@ export const getIntrinsicElementProps = <
1919
/** The slot's default element type (e.g. 'div') */
2020
tagName: NonNullable<Props['as']>,
2121
/** The component's props object */
22-
props: Props & React.RefAttributes<InferredElementRefType<Props>>,
22+
props: Props & RefAttributes<InferredElementRefType<Props>>,
2323
/** List of native props to exclude from the returned value */
2424
excludedPropNames?: ExcludedPropKeys[],
2525
) => {

0 commit comments

Comments
 (0)