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 d31df72 commit 91897fc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
11 changes: 4 additions & 7 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 @@ -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");

Expand Down
11 changes: 11 additions & 0 deletions Source/Interface/Integraton.ts
Original file line number Diff line number Diff line change
@@ -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";

0 comments on commit 91897fc

Please sign in to comment.