[components] Added type decleration to Controller's buildDOM method.