StyLua
StyLua copied to clipboard
Type union inside sealed table collapses comments
Union type Status
with comments, inside table type Foo
type Foo = {
Status: "loading" -- loading
| "error" -- error
| "success" -- success
}
reformats to
type Foo = {
Status: "loading" -- loading | "error" -- error | "success", -- success
}
In contract, this keeps comments as expected:
type Status =
"loading" -- loading
| "error" -- error
| "success" -- success