NaturalIntelligence / fast-xml-parser

Validate XML, Parse XML and Build XML rapidly without C/C++ based libraries and no callback.
https://naturalintelligence.github.io/fast-xml-parser/
MIT License
2.45k stars 296 forks source link

Make options in objects optional #574

Closed Lenni009 closed 1 year ago

Lenni009 commented 1 year ago

Purpose / Goal

When using only two options in an options object which has 20 possible options, it's a bit too much to add all of them when you only need two. So now most of them have been made optional. TypeScript would complain if you didn't use all 20, but used the corresponding type for that object.

Type

Please mention the type of PR

Lenni009 commented 1 year ago

Might actually be not necessary, since TS can infer the types for the options on its own