@types/lodash 4.17.3 → 4.17.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lodash/README.md +1 -1
- lodash/common/common.d.ts +1 -0
- lodash/common/object.d.ts +8 -3
- lodash/package.json +2 -2
lodash/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for lodash (https://lodash.com).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sat, 08 Jun 2024 07:07:49 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
lodash/common/common.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _ = require("../index");
|
|
2
2
|
// eslint-disable-next-line @definitelytyped/strict-export-declare-modifiers
|
|
3
3
|
type GlobalPartial<T> = Partial<T>;
|
|
4
|
+
export const uniqueSymbol: unique symbol;
|
|
4
5
|
declare module "../index" {
|
|
5
6
|
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
|
|
6
7
|
type PartialObject<T> = GlobalPartial<T>;
|
lodash/common/object.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _ = require("../index");
|
|
2
|
+
import { uniqueSymbol } from "./common";
|
|
2
3
|
declare module "../index" {
|
|
3
4
|
interface LoDashStatic {
|
|
4
5
|
/**
|
|
@@ -1327,7 +1328,7 @@ declare module "../index" {
|
|
|
1327
1328
|
* _.has(other, 'a');
|
|
1328
1329
|
* // => false
|
|
1329
1330
|
*/
|
|
1330
|
-
has<T, K extends PropertyName>(object: T, path: K): object is T & { [P in K]: P extends keyof T ? T[P] : Record<string, unknown> extends T ? T[keyof T] : unknown};
|
|
1331
|
+
has<T, K extends PropertyName>(object: T, path: K): object is T & { [P in K]: P extends keyof T ? T[P] : Record<string, unknown> extends T ? T[keyof T] : unknown} & {[uniqueSymbol]: unknown};
|
|
1331
1332
|
has<T>(object: T, path: PropertyPath): boolean;
|
|
1332
1333
|
}
|
|
1333
1334
|
interface LoDashImplicitWrapper<TValue> {
|
|
@@ -1578,6 +1579,10 @@ declare module "../index" {
|
|
|
1578
1579
|
* @return Returns the new mapped object.
|
|
1579
1580
|
*/
|
|
1580
1581
|
mapValues<TResult>(obj: string | null | undefined, callback: StringIterator<TResult>): NumericDictionary<TResult>;
|
|
1582
|
+
/**
|
|
1583
|
+
* @see _.mapValues
|
|
1584
|
+
*/
|
|
1585
|
+
mapValues<T, TResult>(array: T[], callback: ArrayIterator<T, TResult>): NumericDictionary<TResult>;
|
|
1581
1586
|
/**
|
|
1582
1587
|
* @see _.mapValues
|
|
1583
1588
|
*/
|
|
@@ -1633,7 +1638,7 @@ declare module "../index" {
|
|
|
1633
1638
|
/**
|
|
1634
1639
|
* @see _.mapValues
|
|
1635
1640
|
*/
|
|
1636
|
-
mapValues<TResult>(callback:
|
|
1641
|
+
mapValues<TResult>(callback: ArrayIterator<T, TResult>): NumericDictionary<TResult>;
|
|
1637
1642
|
/**
|
|
1638
1643
|
* @see _.mapValues
|
|
1639
1644
|
*/
|
|
@@ -1701,7 +1706,7 @@ declare module "../index" {
|
|
|
1701
1706
|
/**
|
|
1702
1707
|
* @see _.mapValues
|
|
1703
1708
|
*/
|
|
1704
|
-
mapValues<TResult>(callback:
|
|
1709
|
+
mapValues<TResult>(callback: ArrayIterator<T, TResult>): ObjectChain<NumericDictionary<TResult>>;
|
|
1705
1710
|
/**
|
|
1706
1711
|
* @see _.mapValues
|
|
1707
1712
|
*/
|
lodash/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/lodash",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.5",
|
|
4
4
|
"description": "TypeScript definitions for lodash",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,6 +55,6 @@
|
|
|
55
55
|
},
|
|
56
56
|
"scripts": {},
|
|
57
57
|
"dependencies": {},
|
|
58
|
-
"typesPublisherContentHash": "
|
|
58
|
+
"typesPublisherContentHash": "74ebed2e7d6c57a170dd86cb86d1848722ce0a78369151c7ac087d43a7a6e2d5",
|
|
59
59
|
"typeScriptVersion": "4.7"
|
|
60
60
|
}
|