• Recursively freezes an object and all its nested properties.

    Type Parameters

    • T extends object

      Type of the object to freeze

    Parameters

    • value: T

      The object to freeze

    • seen: WeakSet<WeakKey> = ...

      Internal parameter to track circular references

    Returns Readonly<T>

    A deeply frozen version of the input object.