API reference > @kontsedal/olas-core > CollectionFactoryApi
CollectionFactoryApi type
Extract the union of every branch's controller Api. Distributes over R.
Signature:
typescript
type CollectionFactoryApi<R> = R extends {
controller: ControllerDef<any, infer A>;
} ? A : never;References: ControllerDef