added typescript definitions for libraries