diff --git a/packages/contracts/src/support/concerns/Container.ts b/packages/contracts/src/support/concerns/Container.ts index cf781824..ef9c2422 100644 --- a/packages/contracts/src/support/concerns/Container.ts +++ b/packages/contracts/src/support/concerns/Container.ts @@ -113,7 +113,7 @@ export default interface Container * @throws {ConcernException} * @throws {Error} */ - call(concern: Constructor, method: PropertyKey, ...args: unknown): unknown; + call(concern: Constructor, method: PropertyKey, ...args: unknown[]): unknown; /** * Set the value of given property in concern instance diff --git a/packages/support/src/concerns/ConcernsContainer.ts b/packages/support/src/concerns/ConcernsContainer.ts index 84bc5fb3..4e64f49a 100644 --- a/packages/support/src/concerns/ConcernsContainer.ts +++ b/packages/support/src/concerns/ConcernsContainer.ts @@ -216,7 +216,7 @@ export default class ConcernsContainer implements Container * @throws {ConcernError} * @throws {Error} */ - public call(concern: Constructor, method: PropertyKey, ...args: unknown): unknown + public call(concern: Constructor, method: PropertyKey, ...args: unknown[]): unknown { return this.get(concern)[method](...args); }