@tsnobip Hi, thanks for your quick response. why we need to define module here?
If I remove module
module Foo: {
type t = Bar | Baz
let elements: array<t>
} = {
the warn was gone.
And if some type like
type result =
| Ok
| Error
| ErrCode(int)
I need to extract the TAG name by some raw JS code?