doc: use $TYPE to simplify