An attempt to extract id property from request.params object results in an error saying Property 'id' does not exist on type 'Obj | undefined'. Further attempt to fix it by adding <{id:string}> results in another error saying Type 'Obj | undefined' has no signatures for which the type argument list is applicable..
Could you please suggeset what would be the best thing to do in this kind of situation?
An attempt to extract
id
property from request.params object results in an error sayingProperty 'id' does not exist on type 'Obj | undefined'
. Further attempt to fix it by adding<{id:string}>
results in another error sayingType 'Obj | undefined' has no signatures for which the type argument list is applicable.
.Could you please suggeset what would be the best thing to do in this kind of situation?