Type Alias: FactoryNames<T>
type FactoryNames<T> = T[number]["name"];
Defined in: packages/overcast-core/src/multiapp.ts:47
The union of ChainNames a factory tuple covers, as literals —
"evm" or "solana" for the pair in MultiOvercastApp's example.
Read off ProtocolFactory.name rather than through the factory's
config, because the tuple's constraint types every element's config as
any: an indexed access would be checked against that constraint and collapse
to any, which is how this silently accepted every string before. name is
N on the constraint too, so the access stays honest.
Type Parameters
| Type Parameter |
|---|
T extends ProtocolFactories |