(handler: Handler | StreamifyHandler)
| 140 | export const AWS_HANDLER_STREAMING_RESPONSE = 'response'; |
| 141 | |
| 142 | function isStreamingHandler(handler: Handler | StreamifyHandler): handler is StreamifyHandler { |
| 143 | return ( |
| 144 | (handler as unknown as Record<symbol, unknown>)[AWS_HANDLER_STREAMING_SYMBOL] === AWS_HANDLER_STREAMING_RESPONSE |
| 145 | ); |
| 146 | } |
| 147 | |
| 148 | export function wrapHandler<TEvent, TResult>( |
| 149 | handler: Handler<TEvent, TResult>, |