Skip to content

Commit

Permalink
Apply HasInstance decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Feb 6, 2024
1 parent c552034 commit 026feec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/support/src/mixins/mixins/PrepareMixin.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Mixin } from "@aedart/contracts/support/mixins";
import { Bare } from "./Bare";
import { Cached } from "./Cached";
import { HasInstance } from "./HasInstance";
import { DeDupe } from "./DeDupe";

/**
Expand All @@ -15,5 +16,5 @@ export const PrepareMixin = function(mixin: Mixin): Mixin
// The following source code is an adaptation of Justin Fagnani's "mixwith.js" (Apache License 2.0)
// @see https://github.com/justinfagnani/mixwith.js

return DeDupe(Cached(Bare(mixin)));
return DeDupe(Cached(HasInstance(Bare(mixin))));
}

0 comments on commit 026feec

Please sign in to comment.