Skip to content

Generated types do not remove $ prefix from JSG_STRUCT members. #4882

@kentonv

Description

@kentonv

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).

Metadata

Metadata

Labels

typesRelated to @cloudflare/workers-types

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions