@nevware21/ts-utils
    Preparing search index...

    Type Alias ReadonlyRecord<K, V>

    ReadonlyRecord: Readonly<Record<K, V>>

    A readonly map-like object type alias.

    Type Parameters

    • K extends keyof any

      Identifies the key type.

    • V

      Identifies the value type.

    0.14.0

    const themes: ReadonlyRecord<string, string> = {
    light: "#ffffff",
    dark: "#000000"
    };

    // themes.light = "#ff0000"; // Error: cannot assign to a read-only property