fix: 🐛 Fix incorrect type definition

This commit is contained in:
Gaspard Wierzbinski 2024-08-25 15:30:19 +02:00 committed by GitHub
parent 7189a6f411
commit 8a9935fde0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,8 +41,8 @@ All properties are optional.
Audio format (e.g. `audio/mpeg`).
</Property>
<Property name="pronouns" type="Pronoun[]" required={false}>
An array of pronouns the user uses. Can be represented as a string or an object.
<Property name="pronouns" type="{ [key: LanguageCode]: Pronoun[] }" required={false}>
An array of internationalized pronouns the user uses. Can be represented as a string or an object.
```typescript
/* e.g. "he/him" */
@ -57,6 +57,8 @@ All properties are optional.
}
type Pronoun = ShortPronoun | LongPronoun;
/* Example: en-US or fr */
type LanguageCode = string;
```
</Property>
<Property name="birthday" type="ISO8601" required={false} typeLink="/types#iso8601">