getting editor converted to Typescript