Contents

exported(as:)

Exports this entity as a transferable intent value type.

Declaration

func exported<T>(as type: T.Type) async throws -> T where T : IntentValueConvertible, T : Transferable

Parameters

  • type:

    The target value type (e.g., IntentPerson.self).

Return Value

An instance of the requested type.

Discussion

Use this for types that conform to both Transferable and IntentValueConvertible, such as IntentPerson. The entity must declare a ValueRepresentation for the requested type.