mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 06:18:19 +01:00
fix: 🐛 Fix incorrect type definition
This commit is contained in:
parent
7189a6f411
commit
8a9935fde0
|
|
@ -41,8 +41,8 @@ All properties are optional.
|
||||||
|
|
||||||
Audio format (e.g. `audio/mpeg`).
|
Audio format (e.g. `audio/mpeg`).
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="pronouns" type="Pronoun[]" required={false}>
|
<Property name="pronouns" type="{ [key: LanguageCode]: Pronoun[] }" required={false}>
|
||||||
An array of pronouns the user uses. Can be represented as a string or an object.
|
An array of internationalized pronouns the user uses. Can be represented as a string or an object.
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
/* e.g. "he/him" */
|
/* e.g. "he/him" */
|
||||||
|
|
@ -57,6 +57,8 @@ All properties are optional.
|
||||||
}
|
}
|
||||||
|
|
||||||
type Pronoun = ShortPronoun | LongPronoun;
|
type Pronoun = ShortPronoun | LongPronoun;
|
||||||
|
/* Example: en-US or fr */
|
||||||
|
type LanguageCode = string;
|
||||||
```
|
```
|
||||||
</Property>
|
</Property>
|
||||||
<Property name="birthday" type="ISO8601" required={false} typeLink="/types#iso8601">
|
<Property name="birthday" type="ISO8601" required={false} typeLink="/types#iso8601">
|
||||||
|
|
@ -132,4 +134,4 @@ All properties are optional.
|
||||||
```
|
```
|
||||||
|
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue