Event handler type that needs to be exported as handler from your function.
e.g. const handler: FunctionEventHandler = (event, context) => { ... }
This type can also be used to construct helper functions for specific events
e.g. const queryHandler: FunctionEventHandler<'graphql.query'> = (event, context) => { ... }
Event handler type that needs to be exported as
handlerfrom your function. e.g.const handler: FunctionEventHandler = (event, context) => { ... }This type can also be used to construct helper functions for specific events e.g.
const queryHandler: FunctionEventHandler<'graphql.query'> = (event, context) => { ... }