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 bcdf1dd commit e1b076c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 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 = {}) => {
export default ((...[_Option = {}]: Parameters<Type>) => {
for (const Option in _Option) {
if (
Object.prototype.hasOwnProperty.call(_Option, Option) &&
Expand All @@ -20,7 +20,7 @@ export default ((_Option: Option = {}) => {
const Paths = new Set<Path>();

if (typeof Path !== "undefined") {
if (Path instanceof Array || Path instanceof Set) {
if (Array.isArray(Path) || Path instanceof Set) {
for (const _Path of Path) {
Paths.add(_Path);
}
Expand Down Expand Up @@ -82,10 +82,9 @@ export default ((_Option: Option = {}) => {
}) satisfies Type as Type;

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

import type Action from "files-pipe/Target/Interface/Action.js";
import type Path from "files-pipe/Target/Interface/Path.js";
import type Path from "files-pipe/Target/Type/Path.js";


export const { default: Default } = await import("../Variable/Option.js");
Expand Down
2 changes: 1 addition & 1 deletion Source/Interface/Integration.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @module Integration
*
*
*/
export default interface Type {
(Option: Option): AstroIntegration;
Expand Down

0 comments on commit e1b076c

Please sign in to comment.