Compound heterozygous TYK2 mutations underlie primary immunodeficiency with T-cell lymphopenia. Here, TYK2 is linked to inborn error of immunity.