From 3ed5339c814da068b919c066fd2ca212cd6d882d Mon Sep 17 00:00:00 2001 From: Alin Eugen Deac Date: Tue, 13 Feb 2024 21:10:20 +0100 Subject: [PATCH] Add Concern Configuration interface --- .../src/support/concerns/Configuration.ts | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 packages/contracts/src/support/concerns/Configuration.ts diff --git a/packages/contracts/src/support/concerns/Configuration.ts b/packages/contracts/src/support/concerns/Configuration.ts new file mode 100644 index 00000000..906e6f65 --- /dev/null +++ b/packages/contracts/src/support/concerns/Configuration.ts @@ -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 +{ + /** + * The target Concern Class this configuration is for + */ + concern: T; + + /** + * Aliases for Concern's properties or methods. + */ + aliases?: Aliases +} \ No newline at end of file