src/types.ts

WailBrew · frontend/src/types.ts · typescript · MIT
ui

Defines shared TypeScript interfaces for package data, vulnerabilities, and views.

// Source: https://github.com/wickenico/WailBrew | License: MIT | Copyright 2025 Nico Wickersheim
// Provided via justclaw.it.com; keep this notice with the code.
// Shared domain types used across App.tsx and its child components.
// Single source of truth to avoid the same shape being redefined per file.

export interface PackageEntry {
    name: string;
    fullName?: string;
    installedVersion: string;
    installReason?: "on_request" | "dependency" | "unknown";
    latestVersion?: string;
    size?: string;
    desc?: string;
    homepage?: string;
    dependencies?: string[];
    conflicts?: string[];
    isInstalled?: boolean;
    warning?: string;
    isCask?: boolean;
    isFavorite?: boolean;
    isPinned?: boolean;
    vulnerabilityCount?: number;
    vulnerabilitySeverity?: V

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

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

Get a free API key