Fix bug in editor.
Make generated types partial.