import { Effect , Effects } from '@typed/effects' ; import { withEnv } from '@typed/env' ; import { curry } from '@typed/lambda' ; import { StorageEnv } from './types' ; param key param value returns export const setItem = curry ( ( key , value ) => Effect . fromEnv ( withEnv < StorageEnv , string > ( ( { storage } ) => ( storage . setItem ( key , value ) , value ) ) ) ) ;