Skip to content

Commit

Permalink
squash!
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Oct 26, 2023
1 parent 7a14ef4 commit c5a461e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Source/Function/Integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import __Critters from "critters";
*
*/
export default ((...[_Option = {}]: Parameters<Type>) => {
for (const Option in _Option) {
if (
Object.prototype.hasOwnProperty.call(_Option, Option) &&
_Option[Option] === true
) {
_Option[Option] = Default[Option as keyof typeof Default];
}
}
Object.entries(_Option).forEach(([Key, Value]) =>
Object.defineProperty(_Option, Key, {
value:
Value === true
? Default[Key as keyof typeof Default]
: _Option[Key as keyof typeof _Option],
})
);

const { Action, Cache, Critters, Exclude, Logger, Path } = Merge(
Default,
Expand Down

0 comments on commit c5a461e

Please sign in to comment.