@react-hook/merged-ref
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -1,9 +0,7 @@ | ||
export interface ObjectRef { | ||
current: any | ||
} | ||
import {MutableRefObject} from 'react' | ||
export interface CallbackRef extends Function { | ||
(element: any): any | void | ||
} | ||
export declare type ReactRef = CallbackRef | ObjectRef | ||
export declare type ReactRef = CallbackRef | MutableRefObject<any> | ||
declare const useMergedRef: (...args: ReactRef[]) => CallbackRef | ||
export default useMergedRef |
@@ -1,9 +0,7 @@ | ||
export interface ObjectRef { | ||
current: any | ||
} | ||
import {MutableRefObject} from 'react' | ||
export interface CallbackRef extends Function { | ||
(element: any): any | void | ||
} | ||
export declare type ReactRef = CallbackRef | ObjectRef | ||
export declare type ReactRef = CallbackRef | MutableRefObject<any> | ||
declare const useMergedRef: (...args: ReactRef[]) => CallbackRef | ||
export default useMergedRef |
{ | ||
"name": "@react-hook/merged-ref", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"homepage": "https://github.com/jaredLunde/react-hook/tree/master/packages/merged-ref#readme", | ||
@@ -5,0 +5,0 @@ "repository": "github:jaredLunde/react-hook", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6929
54