[syntax] Can typescript export a function?