Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outdated TypeScript definitions #486

Closed
KennethWussmann opened this issue Jan 14, 2022 · 0 comments
Closed

Outdated TypeScript definitions #486

KennethWussmann opened this issue Jan 14, 2022 · 0 comments

Comments

@KennethWussmann
Copy link
Contributor

KennethWussmann commented Jan 14, 2022

Hey there,
the provided TypeScript definitions are unfortunately not in sync with the actual possible parameters.
The used interfaces are also not exported making it hard to use semi-typed objects in the meanwhile. The ConfigureParams object therefore has to be casted to any erasing all the type information.

For example, if I would want to set the logSettings it's not existing, so I need to add a type hint for any:

import { configure } from "@vendia/serverless-express";
export const handler = configure({
    app,
    logSettings: {
      level: 'debug',
    }
  } as any)
github-actions bot pushed a commit that referenced this issue Jan 23, 2022
## [4.5.3](v4.5.2...v4.5.3) (2022-01-23)

### Bug Fixes

* **types:** add missing config params ([#486](#486)) ([#488](#488)) ([093af02](093af02))
OneDev0411 added a commit to OneDev0411/serverless-express that referenced this issue Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant