From ed5cc1320774dfecbb72b4a1190cb5b89f91035c Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 22 Oct 2023 02:21:28 +0300 Subject: [PATCH] squash! --- Source/Function/Integration.ts | 6 ++---- Source/Interface/Integration.ts | 6 +++++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Source/Function/Integration.ts b/Source/Function/Integration.ts index 1fb2d69..5886db2 100644 --- a/Source/Function/Integration.ts +++ b/Source/Function/Integration.ts @@ -2,7 +2,7 @@ * @module Integration * */ -export default ((_Option: Option = {}): AstroIntegration => { +export default ((...[_Option = {}]: Parameters) => { for (const Option in _Option) { if ( Object.prototype.hasOwnProperty.call(_Option, Option) && @@ -36,12 +36,10 @@ export default ((_Option: Option = {}): AstroIntegration => { }; }) satisfies Type as Type; -import type Option from "../Interface/Option.js"; +import type Type from "../Interface/Integration.js"; import type Path from "files-pipe/Target/Type/Path.js"; -import type { AstroIntegration } from "astro"; - export const { default: Default } = await import("../Variable/Option.js"); export const { default: Merge } = await import( diff --git a/Source/Interface/Integration.ts b/Source/Interface/Integration.ts index e499974..d20834a 100644 --- a/Source/Interface/Integration.ts +++ b/Source/Interface/Integration.ts @@ -3,5 +3,9 @@ * */ export default interface Type { - () + (Option: Option): AstroIntegration; } + +import type { AstroIntegration } from "astro"; + +import type Option from "../Interface/Option.js";