---
title: decodeGenericSubstitutions()
framework: distributed
role: symbol
role_heading: Instance Method
path: distributed/distributedtargetinvocationdecoder/decodegenericsubstitutions()
---

# decodeGenericSubstitutions()

Decode all generic substitutions that were recorded for this invocation.

## Declaration

```swift
mutating func decodeGenericSubstitutions() throws -> [any Any.Type]
```

## Return Value

Return Value Array of all generic substitutions necessary to execute this invocation target.

## Discussion

Discussion The values retrieved from here must be in the same order as they were recorded by recordGenericSubstitution(_:). note: If decoding substitutions fails.
