Comparing version 4.0.1 to 4.0.2
@@ -257,3 +257,3 @@ export interface Options { | ||
// Overload that returns an Array as path when `pathAsArray` option is true. | ||
// Overload that returns a string array as path when `ignoreSymbols` and `pathAsArray` options are true. | ||
<ObjectType extends Record<string, any>>( | ||
@@ -263,2 +263,15 @@ object: ObjectType, | ||
this: ObjectType, | ||
path: string[], | ||
value: unknown, | ||
previousValue: unknown, | ||
applyData: ApplyData | ||
) => void, | ||
options: Options & {ignoreSymbols: true; pathAsArray: true} | ||
): ObjectType; | ||
// Overload that returns an array as path when `pathAsArray` option is true. | ||
<ObjectType extends Record<string, any>>( | ||
object: ObjectType, | ||
onChange: ( | ||
this: ObjectType, | ||
path: Array<string | symbol>, | ||
@@ -265,0 +278,0 @@ value: unknown, |
{ | ||
"name": "on-change", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Watch an object or array for changes", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
39339
1098
71621