homebridge / plugin-ui-utils

Create fully customisable configuration user interfaces for Homebridge plugins.
https://homebridge.io
MIT License
33 stars 7 forks source link

Missing types in "ui.interface.d.ts" #22

Open mrjackyliang opened 1 month ago

mrjackyliang commented 1 month ago

Analysis

The types for ServerEnvMetadata do not completely show what I see in the browser console.

Current types:

export interface ServerEnvMetadata {
    theme: string;
    serverTimestamp: string;
    formAuth: boolean | 'none';
    env: {
        ableToConfigureSelf: boolean;
        dockerOfflineUpdate: boolean;
        enableAccessories: boolean;
        enableTerminalAccess: boolean;
        homebridgeInstanceName: string;
        nodeVersion: string;
        packageName: string;
        packageVersion: string;
        platform: string;
        runningInDocker: boolean;
        runningInLinux: boolean;
        serviceMode: boolean;
        temperatureUnits: string;
        lang: string | null;
        instanceId: string;
    };
}

What I see in the browser console:

Screenshot 2024-08-19 at 8 42 22 AM

Expected Behavior

Expected the types to match.

Steps To Reproduce

Simply do a console.log() of window.homebridge while in a custom UI.

Logs

N/A

Configuration

N/A

Environment

Process Supervisor

hb-service

Additional Context

No response

github-actions[bot] commented 4 days ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.