Wrap api factory constructor parameter with object
This commit is contained in:
parent
0dd9701ceb
commit
2f7f101b74
|
|
@ -7,7 +7,7 @@ import HttpMethod from './HttpMethod'
|
|||
class ApiMethodFactory {
|
||||
private readonly apiPrefix: string
|
||||
|
||||
constructor(apiPrefix: string) {
|
||||
constructor({ apiPrefix }: { apiPrefix: string }) {
|
||||
this.apiPrefix = apiPrefix
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue