How to fix This comparison appears to be unintentional because the types have no overlap in TypeScript | DevErrors