You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
As stated.
Something like:
Should become:
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.The text was updated successfully, but these errors were encountered: