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

context-state

Package Overview
Dependencies
Maintainers
0
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

context-state - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

6

dist/create-container.d.ts

@@ -17,3 +17,3 @@ import * as react from 'react';

type UseHookType<InitialValue, Value> = (initialValue: InitialValue) => Value;
declare function createContainer<Value, InitialValue>(useHook: UseHookType<InitialValue, Value>, equalityFn?: EqualityFn<Partial<Value>>): {
declare function createContainer<Value, InitialValue>(useHook: UseHookType<InitialValue, Value>, equalityFn?: EqualityFn): {
Provider: ({ value, children }: {

@@ -26,6 +26,6 @@ value?: InitialValue;

}) => ReactNode;
useSelector: <Selected extends Value>(selector: SelectorFn<Value, Selected>, equalityFn?: EqualityFn<Partial<Value>>) => Selected;
usePicker: <Selected extends keyof Value>(selected: Selected[], equalityFn?: EqualityFn<Partial<Value>>) => Pick<Value, Selected>;
useSelector: <Selected>(selector: SelectorFn<Value, Selected>, equalityFn?: EqualityFn<Selected>) => Selected;
usePicker: <Selected extends keyof Value>(selected: Selected[], equalityFn?: EqualityFn<Pick<Value, Selected>>) => Pick<Value, Selected>;
};
export { type ContextInnerValue, type ContextValue, type SelectorFn, createContainer };
{
"name": "context-state",
"version": "3.1.0",
"version": "3.1.1",
"description": "React state management library",

@@ -5,0 +5,0 @@ "keywords": [

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