mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Fix failing get test
This commit is contained in:
@@ -5152,7 +5152,7 @@ fp.now(); // $ExpectType number
|
||||
_.get({ a: { b: true } }, ["a"]); // $ExpectType { b: boolean; }
|
||||
_.get({ a: { b: true } }, ["a", "b"]); // $ExpectType any
|
||||
_.get({ a: undefined }, 'a'); // $ExpectType undefined
|
||||
_.get({ a: undefined }, 'a', 'default'); // $ExpectType string
|
||||
_.get({ a: undefined }, 'a', 'default'); // $ExpectType 'default'
|
||||
|
||||
_("abc").get(1); // $ExpectType string
|
||||
_("abc").get(["0"], "_");
|
||||
|
||||
Reference in New Issue
Block a user