Yahweh prepared a great fish to swallow up Jonah, and Jonah was in the belly of the fish three days and three nights.
It is poor exegesis that attempts to explain Jesus' words here as anything other than an acceptance of the events in Jonah as factual.  He even went on to declare in that same passage: