« first day (4431 days earlier)      last day (742 days later) » 

01:28
 
4 hours later…
05:12
export class CustomError extends Error {
    status = 400;

    constructor(status: number, message: string) {
        super(message);
        this.status = status;
        Object.setPrototypeOf(this, CustomError.prototype);
       //error TS2550: Property 'setPrototypeOf' does not exist on type 'ObjectConstructor'.
       //Do you need to change your target library? Try changing the 'lib' compiler option to 'es2015' or later.
    }

    getErrorMessage() {
        return 'Something went wrong: ' + this.message;
 
1 hour later…
06:19
Anyone doing advent of code?
I remember SO Chat used to have a private leader board for it. Anyway like always first few days have been fun, I'm sure that will change as the puzzles start taking hours.

« first day (4431 days earlier)      last day (742 days later) »