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