I want the theorems to be numerated considering the depth, namely:
Chapter 1.
Theorem 1.1.
Section 1.1.
Theorem 1.1.1.
Subsection 1.1.1.
Theorem 1.1.1.1.
Theorem 1.1.1.2.
Theorem 1.1.1.3.
I have used different theorem types like
\newtheorem{th}{Theorem}[chapter]
\newtheorem{thh}{Theorem}[section]
\newtheorem{thhh}{Theorem}[subsection]
but if I change part of a section into a subsection I have to change all the theorem types within.
Is there any way to unify this?

\documentclassare you using? What package are you using for creating your\newtheorems? How do you add the trailing period.to your numbering? – Werner Feb 01 '18 at 00:33