Asking for help about exporting TS types another way

Hi, I’d like to get some feedback/help regarding this ongoing PR:

Thanks a lot!