mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 01:33:07 +02:00
21 lines
652 B
TypeScript
21 lines
652 B
TypeScript
type Obj = { [key: string]: any };
|
|
|
|
declare module 'nested-property' {
|
|
interface IHasNestedPropertyOptions {
|
|
own?: boolean;
|
|
}
|
|
|
|
interface IIsInNestedPropertyOptions {
|
|
validPath?: boolean;
|
|
}
|
|
|
|
export function set<T>(object: T, property: string, value: any): T;
|
|
|
|
export function get(object: Obj, property: string): any;
|
|
|
|
export function has(object: Obj, property: string, options?: IHasNestedPropertyOptions): boolean;
|
|
|
|
export function hasOwn(object: Obj, property: string, options?: IHasNestedPropertyOptions): boolean;
|
|
|
|
export function isIn(object: Obj, property: string, objectInPath: Obj, options?: IIsInNestedPropertyOptions): boolean;
|
|
}
|