DEVELOPER SANDBOX Academy of Mastery
WelcomeBuild · Explore · Create SD
LAB / EXPLORATION

TypeScript Lab: Status Selector

Planned

LAB 014 — TypeScript Data Modeling
Render a union type as a controlled status selector.

01

Objective & Explanation

Learning Target

Objective

Render a union type as a controlled status selector.

Explanation

Union types restrict a value to a known set of allowed alternatives.

02

Technology

Technologies
  • TypeScript
  • HTML
  • CSS
Data Layer

No persistent data layer. Keep all demonstration values inside the standalone project.

Sandbox Source

src/datastore/types.ts

03

Build Instructions

Setup

Create the standalone project folder and listed files.

Implement

Implement the smallest version that demonstrates the concept.

Run & Inspect

Change one input and observe the visible output change.

05

Output

Visible Proof

The browser should visibly demonstrate: render a union type as a controlled status selector.

Data: None