@types/lodash 4.14.196 → 4.14.198

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 CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Lo-Dash (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: Tue, 25 Jul 2023 23:32:44 GMT
11
+ * Last updated: Tue, 05 Sep 2023 19:33:08 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `_`
14
14
 
@@ -1645,6 +1645,10 @@ declare module "../index" {
1645
1645
  * @param collection The collection to sample.
1646
1646
  * @return Returns the random element.
1647
1647
  */
1648
+ sample<T>(collection: readonly [T, ...T[]]): T;
1649
+ /**
1650
+ * @see _.sample
1651
+ */
1648
1652
  sample<T>(collection: Dictionary<T> | NumericDictionary<T> | null | undefined): T | undefined;
1649
1653
  /**
1650
1654
  * @see _.sample
lodash/common/string.d.ts CHANGED
@@ -97,7 +97,7 @@ declare module "../index" {
97
97
  *
98
98
  * Note: No other characters are escaped. To escape additional characters use a third-party library like he.
99
99
  *
100
- * hough the ">" character is escaped for symmetry, characters like ">" and "/" don’t need escaping in HTML
100
+ * Though the ">" character is escaped for symmetry, characters like ">" and "/" don’t need escaping in HTML
101
101
  * and have no special meaning unless they're part of a tag or unquoted attribute value. See Mathias Bynens’s
102
102
  * article (under "semi-related fun fact") for more details.
103
103
  *
lodash/fp.d.ts CHANGED
@@ -3793,6 +3793,7 @@ declare namespace _ {
3793
3793
  type LodashRound = (n: number) => number;
3794
3794
  type LodashRunInContext = (context: object) => lodash.LoDashStatic;
3795
3795
  interface LodashSample {
3796
+ <T>(collection: readonly [T, ...T[]]): T;
3796
3797
  <T>(collection: lodash.Dictionary<T> | lodash.NumericDictionary<T> | null | undefined): T | undefined;
3797
3798
  <T extends object>(collection: T | null | undefined): T[keyof T] | undefined;
3798
3799
  }
lodash/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/lodash",
3
- "version": "4.14.196",
3
+ "version": "4.14.198",
4
4
  "description": "TypeScript definitions for Lo-Dash",
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": "64982931e98fd6a3d4a4943a636abff8a31c96da2820877bbb6744620bc63918",
58
+ "typesPublisherContentHash": "f5a3d945b8f87ad615d40a020989b90134bb2412bc4d695240d131d65829c6bd",
59
59
  "typeScriptVersion": "4.3"
60
60
  }
lodash/pullAllBy.d.ts CHANGED
@@ -1,2 +0,0 @@
1
- import { pullAllBy } from "./index";
2
- export = pullAllBy;