Enable explicit-member-accessibility and no-parameter-properties

This commit is contained in:
Simon Warta
2020-09-29 17:29:00 +02:00
parent 5e79100fe3
commit ed628a70fa
7 changed files with 20 additions and 12 deletions
+6 -1
View File
@@ -1,5 +1,10 @@
export class HttpError extends Error {
constructor(public readonly status: number, text: string, public readonly expose: boolean = true) {
public readonly status: number;
public readonly expose: boolean;
public constructor(status: number, text: string, expose = true) {
super(text);
this.status = status;
this.expose = expose;
}
}
+1 -1
View File
@@ -17,7 +17,7 @@ export interface ChainConstants {
export class Webserver {
private readonly api = new Koa();
constructor(faucet: Faucet, chainConstants: ChainConstants) {
public constructor(faucet: Faucet, chainConstants: ChainConstants) {
this.api.use(cors());
this.api.use(bodyParser());