My understanding is that the size $\alpha$ of hypothesis tests is defined as
$$ \alpha = \sup_{\theta \in \Theta_0} \mathbb{P}_\theta (X \in R) $$
where $\Theta_0$ is the subset of the parameter space associated with the null hypothesis $H_0: \theta \in \Theta_0$ and R is the rejection region such that
$$ \forall X \in R, \text{ reject } H_0 $$
So, in words, the size of hypothesis tests is the supremum of the probability to make type I error, i.e. rejecting $H_0$ when it is true. Correct?