aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/merge-descriptors/index.d.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--node_modules/merge-descriptors/index.d.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/merge-descriptors/index.d.ts b/node_modules/merge-descriptors/index.d.ts
new file mode 100644
index 0000000..df8f91f
--- /dev/null
+++ b/node_modules/merge-descriptors/index.d.ts
@@ -0,0 +1,11 @@
+/**
+Merges "own" properties from a source to a destination object, including non-enumerable and accessor-defined properties. It retains original values and descriptors, ensuring the destination receives a complete and accurate copy of the source's properties.
+
+@param destination - The object to receive properties.
+@param source - The object providing properties.
+@param overwrite - Optional boolean to control overwriting of existing properties. Defaults to true.
+@returns The modified destination object.
+*/
+declare function mergeDescriptors<T, U>(destination: T, source: U, overwrite?: boolean): T & U;
+
+export = mergeDescriptors;