You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everyone! I have just bumped into the situation:
import{call}from"typed-redux-saga";typeProduct={id: number;name: string;}typeProductExtended=Product&{weight: number;}exportfunctionnormalizeProduct<TextendsPartial<Product>>(product: T): T{const{ name =''}=product;return{
...product,name: name.trim(),};}function*saga(productExtended: ProductExtended){constproductExtendedNormalized=yield*call(normalizeProduct,productExtended);// productExtendedNormalized is now of type 'unknown', but expected type is 'ProductExtended'}
The text was updated successfully, but these errors were encountered:
Hi everyone! I have just bumped into the situation:
The text was updated successfully, but these errors were encountered: