From 2f7f101b748585f66cf987478e01367c82feacad Mon Sep 17 00:00:00 2001 From: Vasili Karaev Date: Thu, 5 Aug 2021 12:32:39 +0300 Subject: [PATCH] Wrap api factory constructor parameter with object --- api/ApiMethodFactory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/ApiMethodFactory.ts b/api/ApiMethodFactory.ts index 4ab4960..37d5c32 100644 --- a/api/ApiMethodFactory.ts +++ b/api/ApiMethodFactory.ts @@ -7,7 +7,7 @@ import HttpMethod from './HttpMethod' class ApiMethodFactory { private readonly apiPrefix: string - constructor(apiPrefix: string) { + constructor({ apiPrefix }: { apiPrefix: string }) { this.apiPrefix = apiPrefix }