add correct support to typescript