turn the function for creating new types (or type constructors) into a DOPE function
This commit is contained in:
parent
d8ca2f3999
commit
a0e3aa0cb3
12 changed files with 112 additions and 58 deletions
|
|
@ -6,7 +6,7 @@ import { eqDictType } from "../typeclasses/eq_type.js";
|
|||
import { fnType, setType } from "./types.js";
|
||||
|
||||
const symbolVersioned = Symbol("Versioned");
|
||||
export const versionedType = makeTypeConstructor(symbolVersioned, 1);
|
||||
export const versionedType = makeTypeConstructor(symbolVersioned)(1);
|
||||
|
||||
|
||||
export const constructor = parents => value => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue