#Autocomplete not working using `Narrow` type
1 messages · Page 1 of 1 (latest)
Hi, any idea why autocomplete only works 2 levels deep when using the Narrow utility type? (at the bottom)
@unkempt jasper this is the reason
vs the inner one
actually not 100% sure, there's a lot going on here
It does work if I wrap <Narrow<U>> instead of where extends is, but then it doesn't play nicely with exactOptionalPropertyTypes
Nvm it doesn't
If I change options?: ApplicationCommandOptionData[] & U; it complains about Property 'add' comes from an index signature, so it must be accessed with ['add'].(4111)
yes, because narrowing stops working
😔 I am once again asking for your wisdom