How to access current scope types with `type()` / `morph()` / `narrow()` / `arrayOf()` inside scope?

How to access current scope types with type() / morph() / narrow() / arrayOf() inside scope?
const $ = scope({
    blah: "1 < number < 10",
    blahArray: () => $.type("blah[]")
})

const types = $.compile()
Was this page helpful?