@alanscodelog/utils
    Preparing search index...

    Function setReadOnly

    • Allows setting a readonly property of an object with type checking on the value.

      Useful for setting readonly properties within classes when they should only be readonly to the user.

      Type Parameters

      • T
      • TKey extends string | number | symbol
      • TMutable extends Mutable<T>

      Parameters

      Returns void