How can I call Deploy.getCurrentVersion() using Capacitor?

Using the cordova plugin I can do:
import { Deploy } from ‘cordova-plugin-ionic’;
Deploy.getCurrentVersion()

How would I do this using just capacitor?