o-development / ldo

Monorepo for Linked Data Objects (ldo)
MIT License
23 stars 5 forks source link

improve typings for collections #29

Open elf-pavlik opened 3 months ago

elf-pavlik commented 3 months ago

LDO already ensures that any property that can have multiple values will behave like an empty array before any value is added. Typings don't reflect that and suggest that the value could be undefined. Also pointed out by @pduchesne