react-aptor
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -8,7 +8,7 @@ import { RefObject, Ref } from 'react'; | ||
export declare type Destroy<T> = (instance: Nullable<T>, params?: any) => void; | ||
export interface AptorConfiguration<T> { | ||
export interface AptorConfiguration<T, P = any> { | ||
getAPI: GetAPI<T>; | ||
instantiate: Instantiate<T>; | ||
destroy?: Destroy<T>; | ||
params?: any; | ||
params?: P; | ||
} | ||
@@ -22,3 +22,3 @@ /** | ||
*/ | ||
export default function useAptor<T>(ref: Ref<APIObject>, configuration: AptorConfiguration<T>, deps?: any[]): RefObject<HTMLElement>; | ||
export default function useAptor<T, P = any>(ref: Ref<APIObject>, configuration: AptorConfiguration<T, P>, deps?: any[]): RefObject<HTMLElement>; | ||
export {}; |
@@ -8,7 +8,7 @@ import { RefObject, Ref } from 'react'; | ||
export declare type Destroy<T> = (instance: Nullable<T>, params?: any) => void; | ||
export interface AptorConfiguration<T> { | ||
export interface AptorConfiguration<T, P = any> { | ||
getAPI: GetAPI<T>; | ||
instantiate: Instantiate<T>; | ||
destroy?: Destroy<T>; | ||
params?: any; | ||
params?: P; | ||
} | ||
@@ -22,3 +22,3 @@ /** | ||
*/ | ||
export default function useAptor<T>(ref: Ref<APIObject>, configuration: AptorConfiguration<T>, deps?: any[]): RefObject<HTMLElement>; | ||
export default function useAptor<T, P = any>(ref: Ref<APIObject>, configuration: AptorConfiguration<T, P>, deps?: any[]): RefObject<HTMLElement>; | ||
export {}; |
{ | ||
"name": "react-aptor", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "React API connector", |
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
23549