type-enum-dict

Installation
SKILL.md

Type / Enum / Dict Skill

This skill covers three tightly-related artifacts created together whenever a domain concept needs a constrained string type at compile time and/or at runtime.

The three artifacts

Type (src/type/T{Name}.ts)

Pure TypeScript — no runtime value. Three variants:

String union — for finite known values:

type TPublishState = "draft" | "published";
export default TPublishState;

Template literal — for structured string shapes validated statically by the type system:

type TSimpleDate = `${number}-${number}-${number}`;
export default TSimpleDate;
Related skills
Installs
3
First Seen
14 days ago