cloudflare / cloudflare/workerd

Generated types do not remove $ prefix from JSG_STRUCT members.

Open
#4,882 0 comments 0 reactions 1 assignee Claimed by @workers-devprod View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.