The basic rule is that infinitives may follow superlatives, ordinal numbers, and a few other words that have similar functions. This explains why, in your sentence, the infinitive to hit follows the phrase worst typhoon
Michael Swan (Practical English Usage, 2017 edition, section 101) writes the following:
superlatives, etc: the oldest athlete to win . . .
Superlatives can be followed by an infinitive structure. The meaning is similar to an identifying relative clause.
He's the oldest athlete ever to win an Olympic gold medal. (= . . . who has
ever won . . .)
This structure is also common with first, second, third, etc, next, last and only.
Who was the first person to climb Everest without oxygen?
The next to arrive was Mrs Patterson.
She's the only scientist to have won three Nobel prizes.
Most of Swan's examples illustrate the words being used as adjectives or determiners. The same rule applies when they are used as nouns:
The first to escape the burning building was Jason Bourne.
The youngest to win the competition was Jack Reacher.