I'd use `this.type` here.