ohmjs / ohm

A library and language for building parsers, interpreters, compilers, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

asIteration is missing from the TypeScript types

ericmorand opened this issue · comments

asIteration is in the documentation but I cant' find it in the TypeScript types.

Is it really supported? How can we use it if we don't know on what kind of node it applies and what it returns?

Thanks by advance.

Good catch — I can add it to the type definitions. Yes, it's supported, and it returns an IterationNode.

Fixed on main. I will try to publish a minor release with the fix soon.