TextContent
Text content: Text/Button labels never contain elements.
Utilização
Cancel all app notifications.
Este tipo é usado por Button
// Cancel all app notifications.
import { Button, notifications, storage } from 'kuito';
async function signOut() {
await notifications.cancelAll(); // no reminders for the account that left
await storage.clear();
}
<Button onPress={signOut}>Sign out</Button>;Declaração do tipo
export type TextContent =
| string
| number
| boolean
| null
| undefined
| ReadonlySignal<TextContent>
| readonly TextContent[];Tipo
string | number | boolean | ReadonlySignal<TextContent> | readonly TextContent[]Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.