Closed SevenOutman closed 2 years ago
I have the same problem
Using type instead of interface will solve this. Maybe i can try to send a pr to fix this at the typescript level.
Thanks @gnsharma-pepper , PR is welcome!
@supnate created a pr for this.
Thanks @gnsharma for the fix and providing the context why it happens. Published by v1.2.5
.
Hi, thanks for this great tool! I'm having little trouble with
NiceModal.create
method when it always require my component props to have an extra[key: string]: unknown
property signature.Here's my modal component with normal prop declaration but fail because of incompatibility with
Record<string, unknown>
.I always have to add this extra
[key: string]: unknown
property to dismiss the ts error.