@types/lodash 3.10.2 → 3.10.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 v3 → lodash v3.10}/LICENSE +1 -1
- lodash v3.10/README.md +16 -0
- {lodash v3 → lodash v3.10}/index.d.ts +24 -19
- {lodash v3 → lodash v3.10}/package.json +7 -4
- lodash v3/README.md +0 -16
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
lodash v3.10/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
> `npm install --save @types/lodash`
|
|
3
|
+
|
|
4
|
+
# Summary
|
|
5
|
+
This package contains type definitions for Lo-Dash (http://lodash.com/).
|
|
6
|
+
|
|
7
|
+
# Details
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash/v3.
|
|
9
|
+
|
|
10
|
+
### Additional Details
|
|
11
|
+
* Last updated: Tue, 16 Aug 2022 19:02:42 GMT
|
|
12
|
+
* Dependencies: none
|
|
13
|
+
* Global values: `_`
|
|
14
|
+
|
|
15
|
+
# Credits
|
|
16
|
+
These definitions were written by [Brian Zengel](https://github.com/bczengel), and [Ilya Mochalov](https://github.com/chrootsu).
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
declare var _: _.LoDashStatic;
|
|
7
7
|
|
|
8
|
-
declare
|
|
8
|
+
declare namespace _ {
|
|
9
9
|
interface LoDashStatic {
|
|
10
10
|
/**
|
|
11
11
|
* Creates a lodash object which wraps the given value to enable intuitive method chaining.
|
|
@@ -71,27 +71,27 @@ declare module _ {
|
|
|
71
71
|
/**
|
|
72
72
|
* The "escape" delimiter.
|
|
73
73
|
**/
|
|
74
|
-
escape?: RegExp;
|
|
74
|
+
escape?: RegExp | undefined;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The "evaluate" delimiter.
|
|
78
78
|
**/
|
|
79
|
-
evaluate?: RegExp;
|
|
79
|
+
evaluate?: RegExp | undefined;
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* An object to import into the template as local variables.
|
|
83
83
|
**/
|
|
84
|
-
imports?: Dictionary<any
|
|
84
|
+
imports?: Dictionary<any> | undefined;
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
87
|
* The "interpolate" delimiter.
|
|
88
88
|
**/
|
|
89
|
-
interpolate?: RegExp;
|
|
89
|
+
interpolate?: RegExp | undefined;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Used to reference the data object in the template text.
|
|
93
93
|
**/
|
|
94
|
-
variable?: string;
|
|
94
|
+
variable?: string | undefined;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
@@ -9673,17 +9673,17 @@ declare module _ {
|
|
|
9673
9673
|
/**
|
|
9674
9674
|
* Specify invoking on the leading edge of the timeout.
|
|
9675
9675
|
*/
|
|
9676
|
-
leading?: boolean;
|
|
9676
|
+
leading?: boolean | undefined;
|
|
9677
9677
|
|
|
9678
9678
|
/**
|
|
9679
9679
|
* The maximum time func is allowed to be delayed before it’s invoked.
|
|
9680
9680
|
*/
|
|
9681
|
-
maxWait?: number;
|
|
9681
|
+
maxWait?: number | undefined;
|
|
9682
9682
|
|
|
9683
9683
|
/**
|
|
9684
9684
|
* Specify invoking on the trailing edge of the timeout.
|
|
9685
9685
|
*/
|
|
9686
|
-
trailing?: boolean;
|
|
9686
|
+
trailing?: boolean | undefined;
|
|
9687
9687
|
}
|
|
9688
9688
|
|
|
9689
9689
|
interface LoDashStatic {
|
|
@@ -10240,12 +10240,12 @@ declare module _ {
|
|
|
10240
10240
|
/**
|
|
10241
10241
|
* If you'd like to disable the leading-edge call, pass this as false.
|
|
10242
10242
|
*/
|
|
10243
|
-
leading?: boolean;
|
|
10243
|
+
leading?: boolean | undefined;
|
|
10244
10244
|
|
|
10245
10245
|
/**
|
|
10246
10246
|
* If you'd like to disable the execution on the trailing-edge, pass false.
|
|
10247
10247
|
*/
|
|
10248
|
-
trailing?: boolean;
|
|
10248
|
+
trailing?: boolean | undefined;
|
|
10249
10249
|
}
|
|
10250
10250
|
|
|
10251
10251
|
interface LoDashStatic {
|
|
@@ -11127,6 +11127,8 @@ declare module _ {
|
|
|
11127
11127
|
}
|
|
11128
11128
|
|
|
11129
11129
|
//_.isEmpty
|
|
11130
|
+
type EmptyObject<T> = { [K in keyof T]?: never };
|
|
11131
|
+
type EmptyObjectOf<T> = EmptyObject<T> extends T ? EmptyObject<T> : never;
|
|
11130
11132
|
interface LoDashStatic {
|
|
11131
11133
|
/**
|
|
11132
11134
|
* Checks if value is empty. A value is considered empty unless it’s an arguments object, array, string, or
|
|
@@ -11135,6 +11137,10 @@ declare module _ {
|
|
|
11135
11137
|
* @param value The value to inspect.
|
|
11136
11138
|
* @return Returns true if value is empty, else false.
|
|
11137
11139
|
*/
|
|
11140
|
+
isEmpty<T extends { __trapAny: any }>(value?: T): boolean;
|
|
11141
|
+
isEmpty(value: string): value is '';
|
|
11142
|
+
isEmpty(value: Map<any, any> | Set<any> | List<any> | null | undefined): boolean;
|
|
11143
|
+
isEmpty<T extends object>(value: T | null | undefined): value is EmptyObjectOf<T> | null | undefined;
|
|
11138
11144
|
isEmpty(value?: any): boolean;
|
|
11139
11145
|
}
|
|
11140
11146
|
|
|
@@ -14831,7 +14837,7 @@ declare module _ {
|
|
|
14831
14837
|
/**
|
|
14832
14838
|
* The sourceURL of the template's compiled source.
|
|
14833
14839
|
*/
|
|
14834
|
-
sourceURL?: string;
|
|
14840
|
+
sourceURL?: string | undefined;
|
|
14835
14841
|
}
|
|
14836
14842
|
|
|
14837
14843
|
interface TemplateExecutor {
|
|
@@ -14976,11 +14982,11 @@ declare module _ {
|
|
|
14976
14982
|
//_.trunc
|
|
14977
14983
|
interface TruncOptions {
|
|
14978
14984
|
/** The maximum string length. */
|
|
14979
|
-
length?: number;
|
|
14985
|
+
length?: number | undefined;
|
|
14980
14986
|
/** The string to indicate text is omitted. */
|
|
14981
|
-
omission?: string;
|
|
14987
|
+
omission?: string | undefined;
|
|
14982
14988
|
/** The separator pattern to truncate to. */
|
|
14983
|
-
separator?: string|RegExp;
|
|
14989
|
+
separator?: string|RegExp | undefined;
|
|
14984
14990
|
}
|
|
14985
14991
|
|
|
14986
14992
|
interface LoDashStatic {
|
|
@@ -15531,7 +15537,7 @@ declare module _ {
|
|
|
15531
15537
|
|
|
15532
15538
|
//_.mixin
|
|
15533
15539
|
interface MixinOptions {
|
|
15534
|
-
chain?: boolean;
|
|
15540
|
+
chain?: boolean | undefined;
|
|
15535
15541
|
}
|
|
15536
15542
|
|
|
15537
15543
|
interface LoDashStatic {
|
|
@@ -15912,6 +15918,5 @@ declare module _ {
|
|
|
15912
15918
|
}
|
|
15913
15919
|
}
|
|
15914
15920
|
|
|
15915
|
-
|
|
15916
|
-
|
|
15917
|
-
}
|
|
15921
|
+
export = _;
|
|
15922
|
+
export as namespace _;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/lodash",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.5",
|
|
4
4
|
"description": "TypeScript definitions for Lo-Dash",
|
|
5
|
+
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"contributors": [
|
|
7
8
|
{
|
|
@@ -16,12 +17,14 @@
|
|
|
16
17
|
}
|
|
17
18
|
],
|
|
18
19
|
"main": "",
|
|
20
|
+
"types": "index.d.ts",
|
|
19
21
|
"repository": {
|
|
20
22
|
"type": "git",
|
|
21
|
-
"url": "https://
|
|
23
|
+
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
24
|
+
"directory": "types/lodash"
|
|
22
25
|
},
|
|
23
26
|
"scripts": {},
|
|
24
27
|
"dependencies": {},
|
|
25
|
-
"typesPublisherContentHash": "
|
|
26
|
-
"typeScriptVersion": "
|
|
28
|
+
"typesPublisherContentHash": "023302063a56f20c2f398ab49ee72a24d2527001c3a991182aefd1c75c07389b",
|
|
29
|
+
"typeScriptVersion": "4.0"
|
|
27
30
|
}
|
lodash v3/README.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Installation
|
|
2
|
-
> `npm install --save @types/lodash`
|
|
3
|
-
|
|
4
|
-
# Summary
|
|
5
|
-
This package contains type definitions for Lo-Dash (http://lodash.com/).
|
|
6
|
-
|
|
7
|
-
# Details
|
|
8
|
-
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lodash/v3
|
|
9
|
-
|
|
10
|
-
Additional Details
|
|
11
|
-
* Last updated: Thu, 07 Sep 2017 22:03:13 GMT
|
|
12
|
-
* Dependencies: none
|
|
13
|
-
* Global values: _
|
|
14
|
-
|
|
15
|
-
# Credits
|
|
16
|
-
These definitions were written by Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>.
|