to interfaces
Narven opened this issue · 5 comments
Narven commented
How are we supose to convert to interfaces instead of classes? Using the code in the readme
converter := typescriptify.New().
Add(Person{}).
Add(Dummy{})
err := converter.ConvertToFile("ts/models.ts")
if err != nil {
panic(err.Error())
}
tkrajina commented
Committed a missing initialisation method now:
converter := typescriptify.New().
WithInterface(true).
...
Narven commented
Its kind of hard to use that this since WithInterface(true). does not exists
unless is on a alternate universe or a top secret version
Narven commented
@tkrajina why are you closing this?
There is NO WithInterface(true) in release 0.1.5
tkrajina commented
I'm closing it because it's there.
I don't plan to create releases for every single commit (especially if they aren't bug fixes). If you're using go modules you can easily point to a single commit.
Narven commented
Thanks