[dot-object] update objecttype (#42845)

* [dot-object] update `object`type

* Update index.d.ts

* Update index.d.ts
This commit is contained in:
Michaël De Boey 2020-03-31 03:20:35 +02:00 committed by GitHub
parent 37dd9285e9
commit 9af2953e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
// Type definitions for Dot-Object 1.7
// Type definitions for Dot-Object 2.1
// Project: https://github.com/rhalff/dot-object
// Definitions by: Niko Kovačič <https://github.com/nkovacic>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@ -99,7 +99,7 @@ declare namespace DotObject {
* @param {Object} obj
* @param {Object} mods
*/
object(obj: any, mods?: ModifierFunctionWrapper | Array<ModifierFunctionWrapper>): void;
object(obj: object, mods?: ModifierFunctionWrapper | Array<ModifierFunctionWrapper>): object;
/**
*
* Pick a value from an object using dot notation.