My mum has hypothyroid, all of us (4) all came out healthy, none of us were preterm or anything.
My mil has hyperthyroid, her kids (3 including my hub) are all full term and healthy too.
They are both also on medications throughout pregnancy, your gynae should be able to prescribe you pregnancy safe medicines for thyroid during pregnancy.
Anonymous