You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for opening this issue. I think this makes sense now that we supported generating TypeScript type definitions for grammars. The original type definition was intended to give some basic type information for generic action dictionaries. This would be a breaking change though.
This is now fixed on main, and will be included in the upcoming v17 release. However, you'll have to use BaseActionDict to get the behaviour you're looking for.
Introduction
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
ohm-js@16.4.0
for the project I'm working on.Problem
String mapping in type
ActionDict
breakskeyof
type operator.Example
I wanted to make a type containing actions keys of my grammar.
Instead of returning union of string literal types
keyof ActionDict<any>
returnsstring | number
. Sotype MapKeys == never
.Solution
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: