Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 440 Bytes
import { Context, Handler } from 'aws-lambda'
import { IteratorInput } from '../base/IteratorInput';
const handler: Handler = async (event: IteratorInput, context: Context): Promise<IteratorInput> => {
let index = event.index
let step = event.step
let count = event.count
index += step
const returnObj: IteratorInput = {
index,
step,
count,
continue: index < count
}
return returnObj
}
export { handler }
You can’t perform that action at this time.