Comparing version 1.10.1 to 1.10.2
@@ -99,3 +99,6 @@ /** Object types that should never be mapped */ | ||
defaultBase: Default | ||
): (base: Base | undefined, ...rest: Rest) => Produced<Base, Return> | ||
): <T>( | ||
base: (Draft<T> extends Draft<Base> ? T : Base) | undefined, | ||
...rest: Rest | ||
) => Produced<Base, Return> | ||
@@ -105,3 +108,6 @@ /** Curried producer with no default value */ | ||
recipe: (this: Draft<Base>, draft: Draft<Base>, ...rest: Rest) => Return | ||
): (base: Base, ...rest: Rest) => Produced<Base, Return> | ||
): <T>( | ||
base: Draft<T> extends Draft<Base> ? T : Base, | ||
...rest: Rest | ||
) => Produced<Base, Return> | ||
} | ||
@@ -108,0 +114,0 @@ |
{ | ||
"name": "immer", | ||
"version": "1.10.1", | ||
"version": "1.10.2", | ||
"description": "Create your next immutable state by mutating the current one", | ||
@@ -5,0 +5,0 @@ "main": "dist/immer.js", |
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
247248
1753