summaryrefslogtreecommitdiff
path: root/src/@types
diff options
context:
space:
mode:
Diffstat (limited to 'src/@types')
-rw-r--r--src/@types/nested-property.d.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/@types/nested-property.d.ts b/src/@types/nested-property.d.ts
new file mode 100644
index 0000000000..6990952efd
--- /dev/null
+++ b/src/@types/nested-property.d.ts
@@ -0,0 +1,19 @@
+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: object, property: string): any;
+
+ export function has(object: object, property: string, options?: IHasNestedPropertyOptions): boolean;
+
+ export function hasOwn(object: object, property: string, options?: IHasNestedPropertyOptions): boolean;
+
+ export function isIn(object: object, property: string, objectInPath: object, options?: IIsInNestedPropertyOptions): boolean;
+}