Allow params in fact and event to be an array of Record<K,T>#422
Allow params in fact and event to be an array of Record<K,T>#422aprakhar wants to merge 1 commit intoCacheControl:masterfrom
Conversation
|
Thanks for the PR @aprakhar! I think this change as-is would be a breaking change at the type level. Specifically, Similarly, consumers reading Widening input types (like One option would be to scope this to just the input positions (e.g. where users are defining conditions/events) while keeping the callback and result types unchanged. Alternatively this could be something we pick up in the next major version. |
The params property in fact and event, support an array of Record<Keys, Type>.
I've updated the Typescript type of params. I've moved the type into TParams, which replaces Record<string, any>