<https://twitter.com/vnturansky/status/13869336966...
# javascript
cc @ankushg
a
I look at this and I am seeing
Copy code
@JsUnion
external enum value class GraphItemType(val value: Int) {
  NODE(1), EDGE(2), PORT(4), LABEL(8)
}

println(GraphItemType.EDGE) // 2
println(GraphItemType.PORT) // 4
t
Current plan - use single enum feature - “named constants”. It allows to declare plugin in libraries only ( where annotation used). Otherwise you will need to use plugin in all projects, which use library.
a
yikes . . . I would go with named constants for sure