Support TypeScriptEnumAttribute and export enums to .ts file.