Skip to content

Commit

Permalink
Fix spread arg. type
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Feb 22, 2024
1 parent 279e3a6 commit bfa7eff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/contracts/src/support/concerns/Container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default interface Container
* @throws {ConcernException}
* @throws {Error}
*/
call(concern: Constructor<Concern>, method: PropertyKey, ...args: unknown): unknown;
call(concern: Constructor<Concern>, method: PropertyKey, ...args: unknown[]): unknown;

/**
* Set the value of given property in concern instance
Expand Down
2 changes: 1 addition & 1 deletion packages/support/src/concerns/ConcernsContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export default class ConcernsContainer implements Container
* @throws {ConcernError}
* @throws {Error}
*/
public call(concern: Constructor<Concern>, method: PropertyKey, ...args: unknown): unknown
public call(concern: Constructor<Concern>, method: PropertyKey, ...args: unknown[]): unknown
{
return this.get(concern)[method](...args);
}
Expand Down

0 comments on commit bfa7eff

Please sign in to comment.