import { InertApp } from "@scramjet/types" ; param _stream param count export = async function ( _stream , count = 5 ) { const data = this . initialState ; this . logger . log ( { count } ) ; let x = data ?. x || 0 ; this . on ( "test-event" , ( ) => this . emit ( "test-event-response" , "message from sequence" ) ) ; while ( ++ x < + count ) { this . logger . log ( { x : x } ) ; await new Promise ( res => setTimeout ( res , 1000 ) ) ; } } as InertApp < [ ] , { x : number ; } > ;