File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ type FooOrBar = Foo | Bar
332332
333333An example of internal variants are the type mapping properties.
334334
335- #### External
335+ #### typed_keys_quirk
336336
337337The key that defines the variant is external to the definition, like in the
338338case of aggregations in responses or suggesters.
@@ -343,15 +343,15 @@ name in the definition itself.
343343The syntax is:
344344
345345` ` ` ts
346- /** @variants external */
346+ /** @variants typed_keys_quirk */
347347
348348/** @variant name='<field-name>' */
349349```
350350
351351For example:
352352
353353``` ts
354- /** @variants external */
354+ /** @variants typed_keys_quirk */
355355type FooAlias = Faz | Bar
356356
357357/** @variant name='faz' */
@@ -369,7 +369,7 @@ In the example above, `FooAlias` will look like this:
369369
370370``` json
371371{
372- "faz" : {
372+ "name# faz" : {
373373 "prop" : " hello world"
374374 }
375375}
379379
380380``` json
381381{
382- "bar" : {
382+ "name# bar" : {
383383 "prop" : true
384384 }
385385}
You can’t perform that action at this time.
0 commit comments