react-reactive-hooks
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -8,5 +8,8 @@ import reactive from './reactive'; | ||
import type { UseReactiveOptions } from './useReactive'; | ||
export type * from './types'; | ||
export type { ReactiveStore, UseReactiveOptions }; | ||
export { reactive, useReactive, useReactiveValue, createReactiveStore, ReactiveProvider, useReactiveStore, useReactiveUndo, }; | ||
export type Reactive<T> = T; | ||
export type ReactiveValue<T> = Reactive<{ | ||
value: T; | ||
}>; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "react-reactive-hooks", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "A set of React hooks for reactive programming", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import * as React from 'react'; | ||
import type { ReactiveValue } from './types'; | ||
import type { ReactiveValue } from '.'; | ||
declare const reactive: <P extends object, VKS extends (keyof P)[]>(Component: React.FC<P>, valueKeys: VKS, updaters: (model: ReactiveValue<P[VKS[number]]>) => Partial<{ [K in keyof P as Exclude<P[K], undefined> extends (...args: any[]) => any ? K : never]: P[K]; }>) => React.FC<P & { | ||
@@ -4,0 +4,0 @@ model: ReactiveValue<P[VKS[number]]>; |
@@ -1,2 +0,2 @@ | ||
import { Reactive } from './types'; | ||
import { Reactive } from '.'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Options for `useReactive` hook. |
@@ -1,2 +0,2 @@ | ||
import type { ReactiveValue } from './types'; | ||
import type { ReactiveValue } from '.'; | ||
/** | ||
@@ -3,0 +3,0 @@ * A hook that returns a reactive object with a `value` property. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
61977
1000