A proposition is defined to be a type in which any two elements may be identified. (But it could be empty!) This is formalised in type theory as follows:
\mathsf {isProp}(A) :\equiv
{\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod }
}_{(x,y:A)}}
x=_A y
In traditional mathematics, one more often uses the phrase “truth value” for what we call a “proposition”. This usage is OK, but will not take it to mean that we assume every truth value is either “true” (the unit type) or “false” (the empty type).