Comparing version 4.1.0 to 4.2.0
@@ -13,6 +13,5 @@ /** | ||
export default function invertKeyValue< | ||
KeyType extends PropertyKey, | ||
ValueType extends PropertyKey | ||
T extends Record<PropertyKey, PropertyKey> | ||
>( | ||
object: {[key in KeyType]: ValueType} | ||
): {[key in ValueType]: KeyType extends number ? Exclude<KeyType, number> | string : KeyType}; | ||
object: T | ||
): {[P in keyof T as T[P]]: keyof T extends number ? Exclude<keyof T, number> | string : P}; |
{ | ||
"name": "invert-kv", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Invert the key/value of an object. Example: `{foo: 'bar'}` → `{bar: 'foo'}`", | ||
@@ -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
3328
28