relay-compiler 0.0.0-main-4e2fa215 → 0.0.0-main-b4dc2ed8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/linux-arm64/relay +0 -0
- package/linux-x64/relay +0 -0
- package/macos-arm64/relay +0 -0
- package/macos-x64/relay +0 -0
- package/package.json +1 -1
- package/relay-compiler-config-schema.json +24 -0
- package/win-x64/relay.exe +0 -0
package/linux-arm64/relay
CHANGED
|
Binary file
|
package/linux-x64/relay
CHANGED
|
Binary file
|
package/macos-arm64/relay
CHANGED
|
Binary file
|
package/macos-x64/relay
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -134,6 +134,11 @@
|
|
|
134
134
|
"type": "boolean",
|
|
135
135
|
"default": false
|
|
136
136
|
},
|
|
137
|
+
"oneOfType": {
|
|
138
|
+
"description": "How to generate a type for an input object marked as @oneOf.\nDefaults to \"strict\", which is to generate a union type which\npermits only a single property being set at a time. \"ignore\"\ngenerates the type as if the @oneOf annotation does not exist.",
|
|
139
|
+
"$ref": "#/$defs/OneOfGeneration",
|
|
140
|
+
"default": "strict"
|
|
141
|
+
},
|
|
137
142
|
"optionalInputFields": {
|
|
138
143
|
"title": "For Flow type generation",
|
|
139
144
|
"description": "When set, generated input types will have the listed fields optional\neven if the schema defines them as required.",
|
|
@@ -1069,6 +1074,20 @@
|
|
|
1069
1074
|
},
|
|
1070
1075
|
"additionalProperties": false
|
|
1071
1076
|
},
|
|
1077
|
+
"OneOfGeneration": {
|
|
1078
|
+
"oneOf": [
|
|
1079
|
+
{
|
|
1080
|
+
"description": "Will generate a union type, which can have only a single property set",
|
|
1081
|
+
"type": "string",
|
|
1082
|
+
"const": "strict"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"description": "Will exhibit previous behaviour, where @oneOf types would generate a\npermissive object type that may include all, none, or some of the\nproperties set",
|
|
1086
|
+
"type": "string",
|
|
1087
|
+
"const": "ignore"
|
|
1088
|
+
}
|
|
1089
|
+
]
|
|
1090
|
+
},
|
|
1072
1091
|
"PersistConfig": {
|
|
1073
1092
|
"description": "Configuration for how the Relay Compiler should persist GraphQL queries.",
|
|
1074
1093
|
"anyOf": [
|
|
@@ -1484,6 +1503,11 @@
|
|
|
1484
1503
|
],
|
|
1485
1504
|
"default": null
|
|
1486
1505
|
},
|
|
1506
|
+
"oneOfType": {
|
|
1507
|
+
"description": "How to generate a type for an input object marked as @oneOf.\nDefaults to \"strict\", which is to generate a union type which\npermits only a single property being set at a time. \"ignore\"\ngenerates the type as if the @oneOf annotation does not exist.",
|
|
1508
|
+
"$ref": "#/$defs/OneOfGeneration",
|
|
1509
|
+
"default": "strict"
|
|
1510
|
+
},
|
|
1487
1511
|
"optionalInputFields": {
|
|
1488
1512
|
"title": "For Flow type generation",
|
|
1489
1513
|
"description": "When set, generated input types will have the listed fields optional\neven if the schema defines them as required.",
|
package/win-x64/relay.exe
CHANGED
|
Binary file
|