Stone.js API
    Preparing search index...

    Get the metadata value for a given key from a class.

    The class to get the metadata from.

    The key of the metadata to retrieve.

    The default value to return if the metadata key is not found.

    The metadata value or the default value if the key does not exist.

    • Get the metadata value for a given key from a class.

      Type Parameters

      Parameters

      • Class: TClass

        The class to get the metadata from.

      • key: PropertyKey

        The key of the metadata to retrieve.

      Returns UReturn

      The metadata value or the default value if the key does not exist.

    • Get the metadata value for a given key from a class.

      Type Parameters

      Parameters

      • Class: TClass

        The class to get the metadata from.

      • key: PropertyKey

        The key of the metadata to retrieve.

      • fallback: UReturn

        The default value to return if the metadata key is not found.

      Returns UReturn

      The metadata value or the default value if the key does not exist.