import { Effect } from '@typed/effects' ; import { ChannelEffects , HookEnv , HookEnvironment } from './types' ; export const getEnvironmentByKey = ( key ) : ChannelEffects < HookEnv , HookEnvironment > => Effect . withEnv ( ( env ) => env . getEnvironmentByKey ( key ) ) ; export const removeEnvironmentByKey = ( key ) : ChannelEffects < unknown , void > => Effect . withEnv ( ( env ) => env . removeEnvironmentByKey ( key ) ) ;