This commit is contained in:
Joeri Exelmans 2025-03-24 17:28:07 +01:00
parent 6af72e525c
commit 145835ad5d
22 changed files with 153 additions and 90 deletions

View file

@ -1,11 +1,7 @@
import { Bool } from "./primitives/types.js";
import { Bool, Type } from "./primitives/types.js";
import { typedFnType } from "./structures/types.js";
import { deepEqual } from "./util.js";
// TODO: 'Type' (and its instances) are itself instances of (String,[Type]) (=the product type of String and list of Type)
// so is 'Type' just an alias for (String, [Type])
export const Type = { symbol: Symbol('Type'), params: [] };
export const getSymbol = type => type.symbol;
export const getParams = type => type.params;