League-of-Foundry-Developers / foundry-vtt-types

Unofficial type declarations for the Foundry Virtual Tabletop API
MIT License
116 stars 56 forks source link

Improve the typing of `duplicate`. #2770

Open LukeAbby opened 3 months ago

LukeAbby commented 3 months ago

It currently doesn't handle things like readonly arrays and it doesn't seem to deal with functions appropriately.

It also probably should be configured to never return {} as that's a poor type to use.