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`). 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>