Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-reactive-hooks

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-reactive-hooks - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

5

index.d.ts

@@ -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

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc