For consistency with other `setXxx` methods, we could change this to return `this.type` and safe a few lines here.