tkrajina/typescriptify-golang-structs

to interfaces

Narven opened this issue · 5 comments

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())
}

Committed a missing initialisation method now:

converter := typescriptify.New().
    WithInterface(true).
    ...

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

@tkrajina why are you closing this?

There is NO WithInterface(true) in release 0.1.5

I'm closing it because it's there.

1c95abb

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.

Thanks