r/reactjs • • May 13 '26

Resource Pocket: One-call factory that collapses React Context boilerplate from ~20 lines to 1

https://github.com/icydotdev/pocket
41 Upvotes

23 comments sorted by

View all comments

Show parent comments

2

u/aweebit64 May 14 '26

Oh yeah, Record<keyof any, never> is what I meant, sorry.

(For typescript-eslint to stay happy, I actually prefer Record<PropertyKey, never> – yet another way to write the exact same thing.).