-
-
Notifications
You must be signed in to change notification settings - Fork 355
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels