We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91917f6 commit be338a8Copy full SHA for be338a8
MANUAL.md
@@ -590,19 +590,29 @@ following `.proto`
590
enum Foo {
591
FOO_BAR = 0;
592
FOO_BAZ = 1;
593
+}
594
+enum MooFoo {
595
+ MOO_FOO_BAR = 0;
596
+ MOO_FOO_BAZ = 1;
597
}
598
```
599
-The prefix "FOO_" is dropped in TypeScript (unless `keep_enum_prefix` option is provided to the plugin):
600
+The prefix "FOO_" and "MOO_FOO" are dropped in TypeScript (unless `keep_enum_prefix` option is provided to the plugin):
601
602
```typescript
603
604
BAR = 0,
605
BAZ = 1
606
607
608
+ BAR = 0,
609
+ BAZ = 1
610
611
612
613
614
+
615
616
A quick reminder about TypeScript enums:
617
618
- It is possible to lookup the name for an enum value:
0 commit comments