HF RL Explorer

Union types of string literals are incorrectly widened to string

Union types of string literals are incorrectly widened to string: a task in LegoFlow-SWE (Harbor dataset). When @lit-labs/analyzer processes variables or LitElement properties whose type is an explicitly declared string literal union (e.g. 'top' 'bottom' or 'hi' 'hello' ), the reported type is…

The task

When `@lit-labs/analyzer` processes variables or LitElement properties whose type is an **explicitly declared string literal union** (e.g. `'top' | 'bottom'` or `'hi' | 'hello'`), the reported type is widened to the base type `string`.

Part of Lego-X/LegoFlow-SWE.