[ts] Insert export {}
when necessary to imply ESM
#13314
Merged
export {}
when necessary to imply ESM
#13314