add typescripts definition