types/state.ts

tokovo · packages/apps-imessage/src/types/state.ts · typescript · MIT
ui, tag:embed-classified

Defines iMessage app state types, including view mode, screen, theme, and conversation data.

// Source: https://github.com/nishit-g/tokovo | License: MIT | Copyright 2026 Tokovo contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * iMessage App State Types
 */

import type { IMessageConversation } from "./conversation.js";
import type { ViewKind } from "@tokovo/core";

export type IMessageScreen = "list" | "chat" | "info" | "media";

export type IMessageThemeMode = "light" | "dark";

export interface IMessageState {
  /** Required by the Tokovo LayoutEngine. */
  viewMode: ViewKind;
  /** Required when viewMode === "CHAT". */
  conversationId?: string;
  currentScreen?: IMessageScreen;
  activeConversationId?: string;
  themeMode?: IMessageThemeMode;
  statusBarTheme?:
    | "light"
    | "dark"
    | {
        backgroundColor?: string;
        iconC

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key