A
arktype•2mo ago
francis

Are there docs on how to do non-trivial self reference?

I can't seem to find them. I'm aware of the this keyword, but I'm looking to do something like:
const example = type({
name: "string",
selves: "this[]",
});
const example = type({
name: "string",
selves: "this[]",
});
2 Replies
ssalbdivad
ssalbdivad•2mo ago
So what's the issue? this works fine in expressions like this
francis
francisOP•2mo ago
ah, I got a shallow resolution cycle error was using an old version, nvm 🙂

Did you find this page helpful?