Using types in your editor