@cleanweb/oore 2.0.0-beta.5 → 2.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/slots/types.d.ts +1 -1
- package/package.json +1 -1
package/build/slots/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactElement, ReactNode, ComponentType, ReactPortal } from 'react';
|
|
1
|
+
import type { ReactElement, ReactNode, ComponentType, ReactPortal, JSX } from 'react';
|
|
2
2
|
type JSXTagLike = string | keyof JSX.IntrinsicElements | ComponentType<any>;
|
|
3
3
|
/** This fixes overly narrow T type used by React's ComponentProps type. */
|
|
4
4
|
export type ComponentProps<T extends JSXTagLike> = (T extends ComponentType<infer P> ? P : T extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElements[T] : {});
|