Autor mit validiertem Schlüssel und nicht leerem Namen.
interface ChatUser {
id: RowKey
name: string
avatarUrl?: string
}| Feld | Bedeutung |
|---|---|
| id | Eindeutige stabile ID. |
| name | Name des Eingabefelds beziehungsweise Dateiname. |
| avatarUrl | Optionale Avatar-Bildadresse. |
import type { ChatUser } from '@tekocloud.de/tecexpress'
const example: ChatUser = { id: 'me', name: 'Alex' }
console.log(example)