Socket
Socket
Sign inDemoInstall

mobx-react

Package Overview
Dependencies
Maintainers
4
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobx-react - npm Package Compare versions

Comparing version 7.5.3 to 7.6.0

6

CHANGELOG.md
# mobx-react
## 7.6.0
### Minor Changes
- [`7aab223e`](https://github.com/mobxjs/mobx/commit/7aab223e99bdd453365103782dba2047e77e41d0) [#3565](https://github.com/mobxjs/mobx/pull/3565) Thanks [@kubk](https://github.com/kubk)! - Make mobx-react compatible with TS 4.8+
## 7.5.3

@@ -4,0 +10,0 @@

3

dist/inject.d.ts
import { IReactComponent } from "./types/IReactComponent";
import { IValueMap } from "./types/IValueMap";
import { IWrappedComponent } from "./types/IWrappedComponent";
import { IStoresToProps } from "./types/IStoresToProps";
export declare function inject(...stores: Array<string>): <T extends IReactComponent<any>>(target: T) => T & (T extends IReactComponent<infer P> ? IWrappedComponent<P> : never);
export declare function inject<S, P, I, C>(fn: IStoresToProps<S, P, I, C>): <T extends IReactComponent>(target: T) => T & IWrappedComponent<P>;
export declare function inject<S extends IValueMap = {}, P extends IValueMap = {}, I extends IValueMap = {}, C extends IValueMap = {}>(fn: IStoresToProps<S, P, I, C>): <T extends IReactComponent>(target: T) => T & IWrappedComponent<P>;
{
"name": "mobx-react",
"version": "7.5.3",
"version": "7.6.0",
"description": "React bindings for MobX. Create fully reactive components.",

@@ -54,3 +54,3 @@ "source": "src/index.ts",

"devDependencies": {
"mobx": "^6.6.2",
"mobx": "^6.7.0",
"mobx-react-lite": "^3.4.0"

@@ -57,0 +57,0 @@ },

@@ -83,3 +83,3 @@ import React from "react"

) => T & (T extends IReactComponent<infer P> ? IWrappedComponent<P> : never)
export function inject<S, P, I, C>(
export function inject<S extends IValueMap = {}, P extends IValueMap = {}, I extends IValueMap = {}, C extends IValueMap = {}>(
fn: IStoresToProps<S, P, I, C>

@@ -86,0 +86,0 @@ ): <T extends IReactComponent>(target: T) => T & IWrappedComponent<P>

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

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