From ecc5323dc0213524c0bf21a47b52aac3357528ac Mon Sep 17 00:00:00 2001 From: Stitch07 Date: Thu, 4 Feb 2021 11:53:25 +0530 Subject: [PATCH] fix(preconditions): make options optional (#155) --- src/lib/structures/Precondition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/structures/Precondition.ts b/src/lib/structures/Precondition.ts index eaee6924b..40db8a48c 100644 --- a/src/lib/structures/Precondition.ts +++ b/src/lib/structures/Precondition.ts @@ -19,7 +19,7 @@ export abstract class Precondition extends Piece { * Constructs a [[PreconditionError]] with the precondition parameter set to `this`. * @param options The information. */ - public error(options: Omit): PreconditionResult { + public error(options: Omit = {}): PreconditionResult { return err(new PreconditionError({ precondition: this, ...options })); } }