A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/JohnnyMorganz/StyLua/issues/893 below:

Type union inside sealed table collapses comments · Issue #893 · JohnnyMorganz/StyLua · GitHub

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4