added typescript definition for component builds