simplify 'enum'

This commit is contained in:
Joeri Exelmans 2025-06-03 10:42:36 +02:00
parent 366b1ec4e0
commit aee8d5b5e1
6 changed files with 113 additions and 59 deletions

View file

@ -5,7 +5,7 @@ import { Bool, Char, Int } from "../lib/primitives/primitive_types.js";
import { makeModuleStruct } from "../lib/structures/struct.types.js";
import { lsType } from "../lib/structures/type_constructors.types.js";
// Nominal type
const symbolPerson = "Person__22a59ca589b4a7efdbe20b52f380e50f";
const Person = makeTypeConstructor(symbolPerson)(0);