progress
This commit is contained in:
parent
6af72e525c
commit
145835ad5d
22 changed files with 153 additions and 90 deletions
6
type.js
6
type.js
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue