We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb1ebca commit 37a5366Copy full SHA for 37a5366
stage1/main.cpp
@@ -39,6 +39,7 @@ std::string CppifyName(ts::Symbol jsymSymbol) noexcept {
39
tc::for_each(
40
tc::transform(strSourceName, [&](char c) noexcept {
41
if ('-' == c) return '_';
42
+ if ('$' == c) return '_';
43
if ('_' == c) return c;
44
if ('a' <= c && c <= 'z') return c;
45
if ('A' <= c && c <= 'Z') return c;
stage1/tests/compile-module/MyLib.d.ts
@@ -82,6 +82,11 @@ declare namespace Foo {
82
class ClassWithDefaultConstructor {
83
a: ConstructibleClass;
84
}
85
+
86
+ class WeirdNames {
87
+ default: number;
88
+ "$foo": number;
89
+ }
90
91
92
export = Foo;
0 commit comments