Typeberry by Fluffy Labs - v0.4.0
    Preparing search index...

    Function readonlyArray

    • Convert a descriptor for regular array into readonly one.

      NOTE: for performance reasons we assume that every readonly T[] is T[], and the readonly annotation is there just to prevent altering it. It's not true in a general case, but should be good enough for us.

      Type Parameters

      • T
      • V

      Parameters

      Returns Descriptor<readonly T[], V>