From bfa7effc3a85afed1ef91516426945f3e6e2cb1b Mon Sep 17 00:00:00 2001 From: alin Date: Thu, 22 Feb 2024 16:11:32 +0100 Subject: [PATCH] Fix spread arg. type --- packages/contracts/src/support/concerns/Container.ts | 2 +- packages/support/src/concerns/ConcernsContainer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }