Wrap api factory constructor parameter with object

This commit is contained in:
Vasili Karaev 2021-08-05 12:32:39 +03:00
parent 0dd9701ceb
commit 2f7f101b74
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import HttpMethod from './HttpMethod'
class ApiMethodFactory {
private readonly apiPrefix: string
constructor(apiPrefix: string) {
constructor({ apiPrefix }: { apiPrefix: string }) {
this.apiPrefix = apiPrefix
}