It could be said that the Typhoon is a fighter with an offensive capability, rather like the Spitfire was. But the Tornado GR4 is a dedicated strike aircraft, so comparing Typhoon and GR4 is a little like comparing Spitfire and Mosquito.
The Typhoon goes back to the EFA, rolled out in 1986, just as the Tornado ADV entered service.
After many years and lots of money, it eventually emerged as the Typhoon II, alongside the Tornado F3, and designed and intended to replace the latter.
Meanwhile, the Torndao IDS variant was developed further, going from GR1, via GR3 to the current GR4, and is a different animal altogether from the Typhoon, designed for a different role.