Enable explicit-member-accessibility and no-parameter-properties
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user