From df54da9510c7c87f91013f1be08fcc6d3baff885 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 3 Feb 2019 20:32:46 +0900 Subject: [PATCH] Fix type declaretion --- src/@types/nested-property.d.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/@types/nested-property.d.ts b/src/@types/nested-property.d.ts index 6990952ef..097b786a5 100644 --- a/src/@types/nested-property.d.ts +++ b/src/@types/nested-property.d.ts @@ -1,3 +1,5 @@ +type Obj = { [key: string]: any }; + declare module 'nested-property' { interface IHasNestedPropertyOptions { own?: boolean; @@ -9,11 +11,11 @@ declare module 'nested-property' { export function set(object: T, property: string, value: any): T; - export function get(object: object, property: string): any; + export function get(object: Obj, property: string): any; - export function has(object: object, property: string, options?: IHasNestedPropertyOptions): boolean; + export function has(object: Obj, property: string, options?: IHasNestedPropertyOptions): boolean; - export function hasOwn(object: object, property: string, options?: IHasNestedPropertyOptions): boolean; + export function hasOwn(object: Obj, property: string, options?: IHasNestedPropertyOptions): boolean; - export function isIn(object: object, property: string, objectInPath: object, options?: IIsInNestedPropertyOptions): boolean; + export function isIn(object: Obj, property: string, objectInPath: Obj, options?: IIsInNestedPropertyOptions): boolean; }