Skip to content

Anything that is not - or date should be use as type for interfaces #28

@shackra

Description

@shackra

As stated.

Something like:

type Custom struct {
    MyValue `ts:"MyCustomType"`
}

Should become:

interface Custom {
    my_value: MyCustomType
}

For importing the types, I use a script with something like echo "import {Type} from '@types'" > src/types/golang.ts before running struct2ts, if someone is wondering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions