Convert sync.py to TypeScript
#3526
+1,284
−578
Merged
sync.py to TypeScript
#3526