@s-libs/js-core
Advanced tools
Comparing version
@@ -19,2 +19,5 @@ export type ArrayIteratee<I, O> = (item: I, index: number) => O; | ||
}; | ||
export type Prettify<T> = { | ||
[K in keyof T]: T[K]; | ||
} & {}; | ||
export {}; |
@@ -1,2 +0,2 @@ | ||
import { ArrayIteratee, Nil, ObjectIteratee, PartialExceptIndexes } from '../interfaces'; | ||
import { ArrayIteratee, Prettify, Nil, ObjectIteratee, PartialExceptIndexes } from '../interfaces'; | ||
/** | ||
@@ -13,7 +13,7 @@ * Maps `collection` a new object, with keys and values determined by `iteratee`. | ||
*/ | ||
export declare function mapToObject<I, K extends keyof any, V>(array: Nil | readonly I[], iteratee: ArrayIteratee<I, Readonly<[K, V]>>): PartialExceptIndexes<{ | ||
export declare function mapToObject<I, K extends keyof any, V>(array: Nil | readonly I[], iteratee: ArrayIteratee<I, Readonly<[K, V]>>): Prettify<PartialExceptIndexes<{ | ||
[k in K]: V; | ||
}>; | ||
export declare function mapToObject<T, K extends keyof any, V>(object: Nil | T, iteratee: ObjectIteratee<T, Readonly<[K, V]>>): PartialExceptIndexes<{ | ||
}>>; | ||
export declare function mapToObject<T, K extends keyof any, V>(object: Nil | T, iteratee: ObjectIteratee<T, Readonly<[K, V]>>): Prettify<PartialExceptIndexes<{ | ||
[k in K]: V; | ||
}>; | ||
}>>; |
{ | ||
"name": "@s-libs/js-core", | ||
"version": "16.1.0", | ||
"version": "17.0.0-next.0", | ||
"author": "Simonton Software", | ||
@@ -13,3 +13,3 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"@s-libs/micro-dash": "^16.1.0" | ||
"@s-libs/micro-dash": "^17.0.0-next.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "dependencies": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2616
0.11%231790
-0.16%