Archived
removed class extension
This commit is contained in:
1 parent
f1e7ad1a27
commit
e6c220b1c5
1 file changed
+1
-3
@@ -1,11 +1,9 @@
|
||||
import axios from "axios";
|
||||
import { EventEmitter } from "events";
|
||||
|
||||
export class APIClient extends EventEmitter {
|
||||
export class APIClient {
|
||||
#dbUrl = "";
|
||||
|
||||
constructor(dbUrl) {
|
||||
super();
|
||||
if (typeof dbUrl !== "string") throw new Error("Database URL is not a string");
|
||||
this.#dbUrl = dbUrl;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user