In the Yoga Sutras of Patanjali, much is said on Yogic powers, such as becoming minute, clairvoyance, or all knowingness. But, it must be understood that these powers are not something that is added on or gained.
Rather, these powers already exist within our being, but they are blocked or not accessible to most of us.
Just as a farmer opens a gate in his irrigation canal to let the water flow into a certain part of his field, so the Yogin opens an inner gate and lets the shakti flow to access a power. It's the same concept.
The point is that our soul already has all of these powers, and they become available as we gain oneness with our own True Self.