import { delay } from 'redux-saga/effects' ; import { StepperContext } from "./api" ; import { Bundle } from "../linker" ; import { App } from "../index" ; export default function ( bundle ) { bundle . defer ( function ( { stepperApi } ) { stepperApi . addBuiltin ( 'delay' , function * delayBuiltin ( stepperContext , millis ) { function * delaySaga ( ) { yield delay ( millis . toInteger ( ) ) ; } yield [ 'interact' , { saga : delaySaga } ] ; } ) ; } ) ; }