Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Oct 21, 2023
1 parent b5775bf commit ed5cc13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Source/Function/Integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @module Integration
*
*/
export default ((_Option: Option = {}): AstroIntegration => {
export default ((...[_Option = {}]: Parameters<Type>) => {
for (const Option in _Option) {
if (
Object.prototype.hasOwnProperty.call(_Option, Option) &&
Expand Down Expand Up @@ -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(
Expand Down
6 changes: 5 additions & 1 deletion Source/Interface/Integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
*
*/
export default interface Type {
()
(Option: Option): AstroIntegration;
}

import type { AstroIntegration } from "astro";

import type Option from "../Interface/Option.js";

0 comments on commit ed5cc13

Please sign in to comment.