From 671944b370ddf37552608ade0b67183db245c563 Mon Sep 17 00:00:00 2001 From: Abir Date: Tue, 30 Aug 2022 07:56:58 +0530 Subject: [PATCH] fix: remove static bugs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Maciej UrbaƄczyk --- src/problem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/problem.ts b/src/problem.ts index 8e070c6..5e6fb62 100644 --- a/src/problem.ts +++ b/src/problem.ts @@ -34,7 +34,7 @@ export class Problem extends Error implements ProblemInterface { .forEach((k) => (this[k] = problem[k])); } - copy(problem: ProblemInterface, mode: COPY_MODE, props: string[]): Problem { + copy(mode: COPY_MODE = COPY_MODE.LEAVE_PROPS, props: string[] = []): Problem { switch (mode) { case COPY_MODE.LEAVE_PROPS: return new Problem(problem, props);