Skip to content

TS2314: Generic type 'Array<T>' requires 1 type argument #74

@tomasbruckner

Description

@tomasbruckner

Hello,

When I try to import fast-xml-parse in TypeScript, it throws TS2314 error.

  • Are you running the latest version?
  • Have you included sample input?
  • Have you included actual output or error?
  • Have you included expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?
  • Did you bookmarked the repository for further updates? ;)

Input

Please include your sample code or steps to reproduce here

// index.ts
import { parse } from "fast-xml-parser"

parse('<html></html>')

Output

$ tsc index.ts 
node_modules/fast-xml-parser/src/parser.d.ts(34,25): error TS2314: Generic type 'Array<T>' requires 1 type argument(s).

Expected data

No error is thrown.

Additional info

$ tsc -v
Version 2.7.2

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