tdegrunt / jsonschema

JSON Schema validation
Other
1.82k stars 262 forks source link

TypeScript readonly arrays? #368

Open ChocolateLoverRaj opened 2 years ago

ChocolateLoverRaj commented 2 years ago

In the TypeScript types every array is not any[]. This shows an error when I use readonly arrays in a Schema object. I'm guessing a schema doesn't get modified by validate, so should the types actually use readonly any[]?

I can make a pull request with the changes if this change is approved.