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

Type Error in express.ts #140

Open
Srtake opened this issue Mar 14, 2021 · 0 comments
Open

Type Error in express.ts #140

Srtake opened this issue Mar 14, 2021 · 0 comments

Comments

@Srtake
Copy link

Srtake commented Mar 14, 2021

Description

I tried to install this ilp client using npm and then executed it in my Node.js project, but got an error:
node_modules/ilp/src/extensions/express.ts:44:48 - error TS2345: Argument of type 'string | ParsedQs | string[] | ParsedQs[]' is not assignable to parameter of type 'string'. Type 'ParsedQs' is not assignable to type 'string'.
It looks like the variable reference in express.ts can be some object types rather than string type.

Expected Behaviour

Execute successfully and correctly.

Environment

  • Node.js: v10.16.3
  • ilp: v14.1.0
  • Nest.js (the framework I use): v7.4.0
  • Windows 10, Visual Studio Code
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