Skip to content

Commit 33c4619

Browse files
committed
adapt the documentation to reflect the new name
1 parent 046139b commit 33c4619

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/modeling-guide.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ type FooOrBar = Foo | Bar
332332
333333
An example of internal variants are the type mapping properties.
334334
335-
#### External
335+
#### typed_keys_quirk
336336
337337
The key that defines the variant is external to the definition, like in the
338338
case of aggregations in responses or suggesters.
@@ -343,15 +343,15 @@ name in the definition itself.
343343
The syntax is:
344344
345345
```ts
346-
/** @variants external */
346+
/** @variants typed_keys_quirk */
347347

348348
/** @variant name='<field-name>' */
349349
```
350350

351351
For example:
352352

353353
```ts
354-
/** @variants external */
354+
/** @variants typed_keys_quirk */
355355
type 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
}
@@ -379,7 +379,7 @@ or:
379379

380380
```json
381381
{
382-
"bar": {
382+
"name#bar": {
383383
"prop": true
384384
}
385385
}

0 commit comments

Comments
 (0)