An ionic compound is composed of cation and anion and by the electrostatic force of attraction. But after formation, cation attracts the electron pair towards itself and cause some deformation of electron density of anion. Above all if the ionic character predominates over covalent character, then we call it ionic.
KI consist of K+ cations and I− anions.
The bond is purely ionic and the compound is ionic.