mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
lodash: property names and paths can include symbols (#20999)
This commit is contained in:
committed by
Sheetal Nandi
parent
86d3bdeb71
commit
07e8b3b014
Vendored
+1
-1
@@ -16604,7 +16604,7 @@ declare namespace _ {
|
||||
type ValueKeyIteratee<T> = ((value: T, key: string) => any) | string | [string, any] | PartialDeep<T>;
|
||||
type Comparator<T> = (a: T, b: T) => boolean;
|
||||
|
||||
type PropertyName = string | number;
|
||||
type PropertyName = string | number | symbol;
|
||||
type PropertyPath = Many<PropertyName>;
|
||||
|
||||
/** Common interface between Arrays and jQuery objects */
|
||||
|
||||
@@ -10620,6 +10620,9 @@ namespace TestFunctionsIn {
|
||||
|
||||
// _.get
|
||||
namespace TestGet {
|
||||
_.get([], Symbol.iterator);
|
||||
_.get([], [Symbol.iterator]);
|
||||
|
||||
{
|
||||
let result: string;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user