From 91897fc77f893bf814da59ca56ee56d130d915c1 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sun, 22 Oct 2023 01:04:16 +0300 Subject: [PATCH] squash! --- Source/Function/Integration.ts | 11 ++++------- Source/Interface/Integraton.ts | 11 +++++++++++ 2 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 Source/Interface/Integraton.ts diff --git a/Source/Function/Integration.ts b/Source/Function/Integration.ts index 12a6f9f..624d132 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) && @@ -34,13 +34,10 @@ export default (_Option: Option = {}): AstroIntegration => { }, }, }; -}; +}) satisfies Type as Type; -import type Option from "../Interface/Option.js"; - -import type Path from "files-pipe/Target/Interface/Path.js"; - -import type { AstroIntegration } from "astro"; +import type Type from "../Interface/Integraton.js"; +import type Path from "files-pipe/Target/Type/Path.js"; export const { default: Default } = await import("../Variable/Option.js"); diff --git a/Source/Interface/Integraton.ts b/Source/Interface/Integraton.ts new file mode 100644 index 0000000..fbad6d4 --- /dev/null +++ b/Source/Interface/Integraton.ts @@ -0,0 +1,11 @@ +/** + * @module Integration + * + */ +export default interface Type { + (Option: Option): AstroIntegration; +} + +import type { AstroIntegration } from "astro"; + +import type Option from "../Interface/Option.js";