@react-types/shared
Advanced tools
Comparing version 3.0.0-nightly.2983 to 3.0.0-nightly.2986
{ | ||
"name": "@react-types/shared", | ||
"version": "3.0.0-nightly.2983+2964e9aaf", | ||
"version": "3.0.0-nightly.2986+b940126e4", | ||
"description": "Spectrum UI components in React", | ||
@@ -17,3 +17,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "2964e9aafc281888cd65da5bd77512e7f999bd84" | ||
"gitHead": "b940126e4d67a11d28b7c0b098eab23205598b6c" | ||
} |
@@ -13,3 +13,3 @@ /* | ||
import {Ref} from 'react'; | ||
import {ReactNode, Ref, RefAttributes} from 'react'; | ||
@@ -26,1 +26,8 @@ export interface DOMRefValue<T extends HTMLElement = HTMLElement> { | ||
export type FocusableRef<T extends HTMLElement = HTMLElement> = Ref<FocusableRefValue<T>>; | ||
// Override forwardRef types so generics work. | ||
declare function forwardRef<T, P = {}>( | ||
render: (props: P, ref: Ref<T>) => ReactNode | null | ||
): (props: P & RefAttributes<T>) => ReactNode | null; | ||
export type forwardRefType = typeof forwardRef; |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
86200
1801
205