diff --git a/Source/Function/Merge.ts b/Source/Function/Merge.ts index c51b2fc6..7215b60a 100644 --- a/Source/Function/Merge.ts +++ b/Source/Function/Merge.ts @@ -4,7 +4,6 @@ */ export default (await import("deepmerge-ts")).deepmergeCustom({ mergeArrays: false, -}) satisfies Interface as Interface; +}); -import type Interface from "../Interface/Merge.js"; -import type { Generic } from "../Interface/Merge.js"; +import type Generic from "../Interface/Generic.js"; diff --git a/Source/Interface/Generic.ts b/Source/Interface/Generic.ts new file mode 100644 index 00000000..22c58dd7 --- /dev/null +++ b/Source/Interface/Generic.ts @@ -0,0 +1,9 @@ +/** + * @module Generic + * + */ +export default interface Interface { + DeepMergeArraysURI: DeepMergeLeafURI; +} + +import type { DeepMergeLeafURI } from "deepmerge-ts"; diff --git a/Source/Interface/Merge.ts b/Source/Interface/Merge.ts deleted file mode 100644 index 6f2cb754..00000000 --- a/Source/Interface/Merge.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @module Merge - * - * Represents a generic interface for deep merging objects using merge functions defined in DeepMergeFunctionsURIs. - * - * @template PMF - A type parameter representing Partial. - * - */ -export default interface Interface< - PMF extends Partial, -> { - /** - * Merges multiple objects of type Ts using the provided merge functions and built-in metadata. - * - * @param ...Objects - An arbitrary number of objects to be merged. - * - */ - ( - ...Objects: Ts - ): DeepMergeHKT< - Ts, - GetDeepMergeFunctionsURIs, - DeepMergeBuiltInMetaData - >; -} - -export interface Generic { - DeepMergeArraysURI: DeepMergeLeafURI; -} - -import type { - DeepMergeBuiltInMetaData, - DeepMergeHKT, - DeepMergeLeafURI, - DeepMergeFunctionsURIs, - GetDeepMergeFunctionsURIs, -} from "deepmerge-ts";