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
I need to make sure UserChannelList is in the same package than the one exported for the file (here xmap). I could arrange myself to do so, but it brings some complexity.
Last case, I want to use like an "enum" for the keys, in my case it's defined in my own constant package, how could I deal with this? From what I understand it's not possible, the syncmap would have to manage some add of imports, no?
I can to ask essentially the same thing. It would be really nice to use custom types and having a means of unambiguously specifying said types (.e.g, by specifying the package name somehow).
Hi @a8m ,
Currently using a basic
will work.
If I want to use a custom type:
I need to make sure
UserChannelList
is in the same package than the one exported for the file (herexmap
). I could arrange myself to do so, but it brings some complexity.Last case, I want to use like an "enum" for the keys, in my case it's defined in my own
constant
package, how could I deal with this? From what I understand it's not possible, thesyncmap
would have to manage some add of imports, no?Maybe I missed something 🤔
Thank you,
EDIT: a workaround could be that aside my exported file (having package
xmap
) I could declare type aliases for both the key and the value types, like:EDIT2: in all cases, I should make sure it won't bring circular loop if the XXXMap was needed in one of those packages ^^
The text was updated successfully, but these errors were encountered: