Skip to content

search-lessons.route.ts  #6

@s0gemaker

Description

@s0gemaker

WebStorm has detected errors in search-lessons.route.ts file and unable to run "npm run server" because of this. Appreciate if you please advise how to resolve following errors:

Error:(13, 27) TS2345: Argument of type 'string | ParsedQs | string[] | ParsedQs[]' is not assignable to parameter of type 'string'.
Type 'ParsedQs' is not assignable to type 'string'.
Error:(14, 25) TS2345: Argument of type 'string | ParsedQs | string[] | ParsedQs[]' is not assignable to parameter of type 'string'.
Type 'ParsedQs' is not assignable to type 'string'.
Error:(19, 55) TS2367: This condition will always return 'false' since the types 'number' and 'string | ParsedQs | string[] | ParsedQs[]' have no overlap.
Error:(25, 94) TS2339: Property 'toLowerCase' does not exist on type 'string | ParsedQs | string[] | ParsedQs[]'.
Property 'toLowerCase' does not exist on type 'string[]'.
Information:Cannot find parent 'tsconfig.json'

Regards

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