From 5a053c56464e1d6539b2f4934862bc12a6df8416 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Thu, 10 Aug 2023 23:44:47 +0100 Subject: [PATCH] Refactor #4257 - Update d.ts --- components/lib/passthrough/index.d.ts | 15 +++++++++++++++ components/lib/utils/Utils.d.ts | 1 + 2 files changed, 16 insertions(+) diff --git a/components/lib/passthrough/index.d.ts b/components/lib/passthrough/index.d.ts index e69de29bb..eaee6b5c0 100644 --- a/components/lib/passthrough/index.d.ts +++ b/components/lib/passthrough/index.d.ts @@ -0,0 +1,15 @@ +export interface CustomizerOptions { + key?: string | undefined; + to?: object | undefined; + from?: object | undefined; + value?: any; +} + +export interface usePassThroughOptions { + merge?: boolean | undefined; + useMergeProps?: boolean | undefined; + ignoredKeysOnMerge?: string[] | undefined; + customizer?: ((options?: CustomizerOptions) => any) | undefined; +} + +export declare function usePassThrough(pt1: object, pt2: object, options?: usePassThroughOptions): object; diff --git a/components/lib/utils/Utils.d.ts b/components/lib/utils/Utils.d.ts index fcff75af3..52ae4ade3 100644 --- a/components/lib/utils/Utils.d.ts +++ b/components/lib/utils/Utils.d.ts @@ -88,6 +88,7 @@ export declare class ObjectUtils { static isPrintableCharacter(char: string): boolean; static findLast(value: any[], callback: () => any): any; static findLastIndex(value: any[], callback: () => any): number; + static nestedKeys(obj: object, parentKey?: string): string[]; } export declare namespace ZIndexUtils {