Function createNetworkConfig
- createNetworkConfig<
const T extends Record<string, Config>,
Config extends NetworkConfig<Variables> = T[keyof T],
Variables extends object = NonNullable<Config["variables"]>,
>(
networkConfig: T,
): {
networkConfig: T;
useNetworkConfig: () => Config;
useNetworkVariable: <K extends string | number | symbol>(
name: K,
) => Variables[K];
useNetworkVariables: () => Variables;
} Returns {
networkConfig: T;
useNetworkConfig: () => Config;
useNetworkVariable: <K extends string | number | symbol>(
name: K,
) => Variables[K];
useNetworkVariables: () => Variables;
}