use fnType everywhere to create function types

This commit is contained in:
Joeri Exelmans 2025-03-14 17:05:04 +01:00
parent a8260f2afb
commit 6023efc295
10 changed files with 33 additions and 27 deletions

View file

@ -1,4 +1,4 @@
import { getFnType } from "./function_registry.js";
import { fnType } from "./function_registry.js";
export const Type = Symbol('Type');
export const Function = Symbol('Function');
@ -24,8 +24,8 @@ export const ModuleMetaCircular = [
{i: Function, t: Type},
// (Function -> Type) : Function
{i: getFnType(Function, Type), t: Function},
{i: fnType({in: Function, out: Type}), t: Function},
{i: getIn , t: getFnType(Function, Type)},
{i: getOut, t: getFnType(Function, Type)},
{i: getIn , t: fnType({in: Function, out: Type})},
{i: getOut, t: fnType({in: Function, out: Type})},
];