@types/lodash 4.17.3 → 4.17.4
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 +2 -1
- 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: Fri, 17 May 2024 02:16: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> {
|
lodash/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/lodash",
|
|
3
|
-
"version": "4.17.
|
|
3
|
+
"version": "4.17.4",
|
|
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": "29aeb85b95cd7d3be7579ea9938820eb2d06fcb68095fd735ad9abbbc5148766",
|
|
59
59
|
"typeScriptVersion": "4.7"
|
|
60
60
|
}
|