@oazmi/kitchensink - v0.9.13
    Preparing search index...

    Variable object_freezeConst

    object_freeze: {
        <T extends Function>(f: T): T;
        <
            T extends { [idx: string]: undefined
            | null
            | object
            | U },
            U extends string | number | bigint | boolean | symbol,
        >(
            o: T,
        ): Readonly<T>;
        <T>(o: T): Readonly<T>;
    } = ...

    alias for Object.freeze.

    Type declaration

      • <T extends Function>(f: T): T
      • Prevents the modification of existing property attributes and values, and prevents the addition of new properties.

        Type Parameters

        • T extends Function

        Parameters

        • f: T

          Object on which to lock the attributes.

        Returns T

      • <
            T extends { [idx: string]: undefined
            | null
            | object
            | U },
            U extends string | number | bigint | boolean | symbol,
        >(
            o: T,
        ): Readonly<T>
      • Prevents the modification of existing property attributes and values, and prevents the addition of new properties.

        Type Parameters

        • T extends { [idx: string]: undefined | null | object | U }
        • U extends string | number | bigint | boolean | symbol

        Parameters

        • o: T

          Object on which to lock the attributes.

        Returns Readonly<T>

      • <T>(o: T): Readonly<T>
      • Prevents the modification of existing property attributes and values, and prevents the addition of new properties.

        Type Parameters

        • T

        Parameters

        • o: T

          Object on which to lock the attributes.

        Returns Readonly<T>