cloudflare / cloudflare/workerd
Generated types do not remove $ prefix from JSG_STRUCT members.
Open
types
- Dominant language
- C++
- Stars
- 8.7k
- Forks
- 739
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 174
Description
If a JSG_STRUCT has a member whose name is, say, `$class` in C++, the JavaScript name is `class`. The `$` is supposed to be stripped off.
The actual runtime does this correctly, but the generated types are not stripping the `$`.
An example is `DurableObjectFacetsStartupOptions` (an experimental type).
Contributor guide
Assessment
This issue has not been assessed yet.