Christian Sousa
07/22/2020, 1:40 PMexport interface Item {
[label: string]: string[];
}
export interface SequenceMap {
'1': string[] | Item ;
'2': string[] | Item ;
}
I know that I can use a sealed class
to mimic the string[] | Item
. But what is really bugging me is how can I do something like the Item interface?
I’m not that used to Kotlin but this is something somewhat trivial in Typescript.
Any help would be great!
Thanks!Rob Murdock
07/22/2020, 1:47 PMChristian Sousa
07/22/2020, 1:48 PMRob Murdock
07/22/2020, 1:48 PMChristian Sousa
07/22/2020, 1:49 PMRob Murdock
07/22/2020, 1:49 PMChristian Sousa
07/22/2020, 1:50 PMRob Murdock
07/22/2020, 1:51 PMclass SequenceMap() {
val one get(): NodeSealedParentType = ...
val two get(): NodeSealedParentType = ...
}
Christian Sousa
07/22/2020, 1:52 PMRob Murdock
07/22/2020, 1:52 PMChristian Sousa
07/22/2020, 1:52 PMRob Murdock
07/22/2020, 1:53 PMChristian Sousa
07/22/2020, 1:53 PMRob Murdock
07/22/2020, 1:53 PMChristian Sousa
07/22/2020, 1:53 PMRob Murdock
07/22/2020, 1:55 PMChristian Sousa
07/22/2020, 1:58 PMRob Murdock
07/22/2020, 2:00 PMTobias Berger
07/22/2020, 3:10 PM