Contents

exported(as:)

Exports this entity as a system intent value type.

Declaration

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

Parameters

  • type:

    The target system intent value type.

Return Value

An instance of the requested type.

Discussion

Use this for system-provided currency types that conform to _SystemIntentValue, such as PlaceDescriptor. The entity must declare a ValueRepresentation for the requested type.