import { get , TimerEnv } from '@typed/effects' ; import { Timer } from '@typed/timer' ; import { Channel } from './Channel' ; import { createChannel } from './createChannel' ; export const TimerChannel = createChannel < TimerEnv , Timer > ( function * ( ) { const { timer } = yield * get < TimerEnv > ( ) ; return timer ; } ) ;