Skip to content

Commit

Permalink
feat: allow bunch preconditions registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Wroud committed Nov 20, 2024
1 parent cb988ac commit 956aac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@wroud/preconditions/src/PreconditionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export class PreconditionManager<T> {
* Registers a new precondition for this entity type.
* @param precondition - The precondition to register.
*/
public register(precondition: IPrecondition<T>): void {
this.preconditions.push(precondition);
public register(...precondition: IPrecondition<T>[]): void {
this.preconditions.push(...precondition);
}

/**
Expand Down

0 comments on commit 956aac8

Please sign in to comment.