jeremydaly / lambda-api

Lightweight web framework for your serverless applications
https://serverless-api.com
MIT License
1.42k stars 126 forks source link

TS: Logger type does not support Additional Info #199

Closed jaimalchohan closed 1 year ago

jaimalchohan commented 2 years ago

The LoggerFunction doesn't allow a additional info to be passed in

LoggerFunction: https://github.com/jeremydaly/lambda-api/blob/main/index.d.ts#L62 Additional info in README: https://github.com/jeremydaly/lambda-api#adding-additional-detail

This means that in my typescript project, I can't pass a string or object that has additional info to be logged. I don't know enough about TS to suggest a fix, so any pointers would be superb.

jaimalchohan commented 2 years ago

175 and #198 both attempt to fix this issue

smashercosmo commented 2 years ago

@jeremydaly can we get one of these PRs merged?

naorpeled commented 1 year ago

Hey, I've merged one of the PRs that resolves this, will release the change soon.