• 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

  • Prevents the modification of existing property attributes and values, and prevents the addition of new properties.

    Type Parameters

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

    Parameters

    • o: T

      Object on which to lock the attributes.

    Returns 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>

Generated using TypeDoc