ts-type-forge
    Preparing search index...

    Type Alias JsonObject

    JsonObject: ReadonlyRecord<string, JsonValue>

    Represents an immutable JSON object with string keys and JsonValue values. The object itself and all nested structures are readonly, ensuring immutability throughout the entire object tree.

    const config: JsonObject = {
    database: {
    host: "localhost",
    port: 5432,
    ssl: true
    },
    features: ["auth", "logging"]
    };

    // config.database.port = 3306; // ✗ Error: readonly property