gzuidhof / tygo

Generate Typescript types from Golang source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multiple files

cheesycod opened this issue · comments

Would it be possible to add a config option to allow types on different files to be in different ts files

e.g if theres foo.go and bar.go in a package, create foo.ts and bar.ts for types instead of one file

This is theoretically possible, but it would require an intermediate representation in the transpiler. The reason is that if the files refer to eachother, in Typescript you would need to have them import one-another.

So, perhaps the real answer is: not really unless we change tygo to a large degree.