mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
513 B
TypeScript
14 lines
513 B
TypeScript
// Type definitions for dlv 1.1
|
|
// Project: https://github.com/developit/dlv#readme
|
|
// Definitions by: Ryan Sonshine <https://github.com/ryansonshine>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.2
|
|
|
|
/**
|
|
* Safely get a dot-notated path within a nested object, with ability to
|
|
* return a default if the full key path does not exist or the value is
|
|
* undefined
|
|
*/
|
|
export = dlv;
|
|
declare function dlv(object: object, key: string | string[], defaultValue?: any): any;
|