Skip to content

Commit

Permalink
Add Concern Configuration interface
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Feb 13, 2024
1 parent f56ef97 commit 3ed5339
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions packages/contracts/src/support/concerns/Configuration.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import Concern from "./Concern";
import type {
Aliases
} from "./types";

/**
* Concern Configuration
*
* Defines the target Concern that must be injected into a target class,
* along with what aliases to be created.
*/
export default interface Configuration<T extends Concern>
{
/**
* The target Concern Class this configuration is for
*/
concern: T;

/**
* Aliases for Concern's properties or methods.
*/
aliases?: Aliases<T>
}

0 comments on commit 3ed5339

Please sign in to comment.