Function: createNetworkConfig()
function createNetworkConfig<T, Config, Variables>(networkConfig): object;
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends Record<string, Config> | - |
Config extends NetworkConfig<Variables> | T[keyof T] |
Variables extends object | NonNullable<Config["variables"]> |
Parameters
| Parameter | Type |
|---|---|
networkConfig | T |
Returns
object
| Name | Type |
|---|---|
networkConfig | T |
useNetworkConfig() | () => Config |
useNetworkVariables() | () => Variables |
useNetworkVariable() | <K>(name) => Variables[K] |