import { Effect , Effects } from '@typed/effects' ; import { withEnv } from '@typed/env' ; import { StorageEnv } from './types' ; param key returns export const removeItem = ( key ) : Effects < StorageEnv , void > => Effect . fromEnv ( withEnv < StorageEnv , void > ( ( { storage } ) => storage . removeItem ( key ) ) ) ;