small changes
This commit is contained in:
parent
4c394441b0
commit
34d06aa82a
3 changed files with 23 additions and 6 deletions
|
|
@ -1,6 +1,14 @@
|
|||
import { inspect } from "node:util";
|
||||
import { assignFn } from "../generics/generics.js";
|
||||
|
||||
export const newDynamic = i => t => ({i, t});
|
||||
function inspectDynamic(_depth, options, inspect) {
|
||||
return `${inspect(this.i, options)} :: ${inspect(this.t, options)}`;
|
||||
}
|
||||
|
||||
export const newDynamic = i => t => ({
|
||||
i, t,
|
||||
[inspect.custom]: inspectDynamic,
|
||||
});
|
||||
|
||||
export const getInst = lnk => lnk.i;
|
||||
export const getType = lnk => lnk.t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue