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

    Class Compatibility

    Index

    Constructors

    Methods

    • Allows selecting different values for different Gray Paper versions from one record.

      fallback The default value to return if no value is found for the current. versions A record mapping versions to values, checking if the version is greater or equal to the current version.

      Type Parameters

      • T

      Parameters

      • __namedParameters: { fallback: T; versions: Partial<Record<GpVersion, T>> }

      Returns T

      The value for the current version, or the default value.