mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
18 lines
613 B
TypeScript
18 lines
613 B
TypeScript
// Type definitions for dot-prop 4.1
|
|
// Project: https://github.com/sindresorhus/dot-prop#readme
|
|
// Definitions by: Sam Verschueren <https://github.com/samverschueren>
|
|
// BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.2
|
|
|
|
interface DotProp {
|
|
get(obj: object, path: string, defaultValue?: any): any;
|
|
set(obj: object, path: string, value: any): void;
|
|
has(obj: object, path: string): boolean;
|
|
delete(obj: object, path: string): boolean;
|
|
}
|
|
|
|
declare const dotProp: DotProp;
|
|
|
|
export = dotProp;
|