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 {