Files
DefinitelyTyped/types/dot-prop/index.d.ts
2018-01-12 10:01:36 -08:00

18 lines
623 B
TypeScript

// Type definitions for dot-prop 4.2
// 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<T extends object>(obj: T, path: string, value: any): T;
has(obj: object, path: string): boolean;
delete(obj: object, path: string): boolean;
}
declare const dotProp: DotProp;
export = dotProp;