This repository was archived by the owner on Sep 27, 2023. It is now read-only.
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
Enums not generating correctly with Relay 8 #164
Closed
Description
Hi, we tried to upgrade Relay to version 8 with this language plugin but the generated enums look a bit fishy, see:
@@ -2,7 +2,7 @@
import { ReaderFragment } from "relay-runtime";
import { FragmentRefs } from "relay-runtime";
-export type LabelColor = "BLUE" | "GRAY" | "GREEN" | "PURPLE" | "RED" | "YELLOW" | "%future added value";
+export type LabelColor = "%future added value" | "%future added value" | "%future added value" | "BLUE" | "GRAY" | "GREEN" | "PURPLE" | "RED" | "YELLOW" | "%future added value";
export type Label_label = {
readonly colorName: LabelColor | null;
readonly name: string | null;
Notice the %future added value
placeholder duplicates. Changelog which mentions the enums as well: https://github.com/facebook/relay/releases/tag/v8.0.0
Thanks for having a look! :)
Metadata
Metadata
Assignees
Labels
No labels