import { createSubscription } from 'create-subscription' ; import ValueEventEmitter from './ValueEventEmitter' ; const ValueSubscription = createSubscription ( { getCurrentValue ( source ) { return source . value ; } , subscribe ( source , callback ) { return source . addEventListener ( callback ) ; } , } ) ; export default ValueSubscription ;