mobx-react
Advanced tools
Comparing version 7.5.3 to 7.6.0
# 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 @@ |
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
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
618576
3769