diff --git a/types/index.d.ts b/types/index.d.ts index fc7cb85..dd94748 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -61,9 +61,17 @@ type MergeArrayFnOptions = { getKeys: (value: object) => string[]; } +/** + * A function responsible handling the cloning logic of the provided prototype object. + * + * @param value - The proto object to clone. + * @returns the resulting clone (can also return the object itself if you do not want clone but replace). + */ +type CloneProtoObjectFn = (value: any) => any type MergeArrayFn = (options: MergeArrayFnOptions) => (target: any[], source: any[]) => any[] interface Options { + cloneProtoObject?: CloneProtoObjectFn; mergeArray?: MergeArrayFn; symbols?: boolean; all?: boolean;