ilp icon indicating copy to clipboard operation
ilp copied to clipboard

Type Error in express.ts

Open Srtake opened this issue 4 years ago • 0 comments

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

Srtake avatar Mar 14 '21 08:03 Srtake