Skip to content

Type Error in express.ts #140

@Srtake

Description

@Srtake

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions