all-of-just
Advanced tools
Comparing version 0.13.1 to 0.14.0
@@ -242,2 +242,6 @@ declare module 'just-camel-case' { | ||
): I[]; | ||
export default function intersect<T, U, I extends T | U>( | ||
arr1: readonly T[], | ||
arr2: readonly U[] | ||
): I[]; | ||
} | ||
@@ -299,12 +303,16 @@ | ||
declare module 'just-map-keys' { | ||
// Definitions by: Aryaman1706 <https://github.com/Aryaman1706> | ||
function map<T extends object = object>( | ||
obj: T, | ||
predicate: (value: any, key: string | number, object: T) => string | number | ||
): object; | ||
export default map; | ||
} | ||
declare module 'just-map-values' { | ||
// Original definitions by: Roman Lerchster <https://github.com/wa4-fearless-otter> | ||
function mapValues<TInput extends {}, TMappedValue>( | ||
item: TInput, | ||
callback: ( | ||
value: TInput[keyof TInput], | ||
key: keyof TInput, | ||
object: TInput | ||
) => TMappedValue | ||
): { [k in keyof TInput]: ReturnType<typeof callback> }; | ||
function mapValues<T, U = T>( | ||
item: Record<string, T>, | ||
callback: (value: T, key: string, object: Record<string, T>) => U | ||
): Record<string, U>; | ||
@@ -311,0 +319,0 @@ export default mapValues; |
{ | ||
"name": "all-of-just", | ||
"private": false, | ||
"version": "0.13.1", | ||
"version": "0.14.0", | ||
"description": "A single collection of all of Just utility functions in one single library", | ||
@@ -6,0 +6,0 @@ "files": [ |
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
512272
6134