micro-memoize
Advanced tools
Comparing version 4.0.13 to 4.0.14
# micro-memoize CHANGELOG | ||
## 4.0.14 | ||
- Republish of [#87](https://github.com/planttheidea/micro-memoize/pull/87) | ||
## 4.0.13 (Bad version - do not use) | ||
- [#87](https://github.com/planttheidea/micro-memoize/pull/87) - Default generic values for exposed types, to avoid unintentional breaking changes from [#85](https://github.com/planttheidea/micro-memoize/pull/85) | ||
## 4.0.12 | ||
@@ -4,0 +12,0 @@ |
@@ -14,3 +14,3 @@ type Dictionary<Type> = { | ||
export type Cache<Fn extends AnyFn> = import('./src/Cache').Cache<Fn>; | ||
export type Cache<Fn extends AnyFn = AnyFn> = import('./src/Cache').Cache<Fn>; | ||
@@ -21,3 +21,3 @@ export type EqualityComparator = (object1: any, object2: any) => boolean; | ||
export type CacheModifiedHandler<Fn extends AnyFn> = ( | ||
export type CacheModifiedHandler<Fn extends AnyFn = AnyFn> = ( | ||
cache: Cache<Fn>, | ||
@@ -32,3 +32,3 @@ options: NormalizedOptions<Fn>, | ||
export type StandardOptions<Fn extends AnyFn> = { | ||
export type StandardOptions<Fn extends AnyFn = AnyFn> = { | ||
isEqual?: EqualityComparator; | ||
@@ -44,4 +44,5 @@ isMatchingKey?: MatchingKeyComparator; | ||
export type Options<Fn extends AnyFn> = StandardOptions<Fn> & Dictionary<any>; | ||
export type NormalizedOptions<Fn extends AnyFn> = Options<Fn> & { | ||
export type Options<Fn extends AnyFn = AnyFn> = StandardOptions<Fn> & | ||
Dictionary<any>; | ||
export type NormalizedOptions<Fn extends AnyFn = AnyFn> = Options<Fn> & { | ||
isEqual: EqualityComparator; | ||
@@ -52,3 +53,3 @@ isPromise: boolean; | ||
export type Memoized<Fn extends AnyFn> = Fn & | ||
export type Memoized<Fn extends AnyFn = AnyFn> = Fn & | ||
Dictionary<any> & { | ||
@@ -55,0 +56,0 @@ cache: Cache<Fn>; |
@@ -104,3 +104,3 @@ { | ||
"types": "./index.d.ts", | ||
"version": "4.0.13" | ||
"version": "4.0.14" | ||
} |
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
200176
3948