openreplay/frontend/app/services/BaseService.ts
2022-05-16 19:11:53 +02:00

12 lines
No EOL
294 B
TypeScript

import APIClient from 'App/api_client';
export default class BaseService {
client: APIClient;
constructor(client?: APIClient) {
this.client = client ? client : new APIClient();
}
initClient(client?: APIClient) {
this.client = client || new APIClient();
}
}