add another typescript convertion functions