How to use this.$notification of Ant Design (Vuejs) in .js file?

Actually we use this.$notification.open(opitons) in .vue file then it will show the notification in our web app. But How can we use this.$notification.open(options) in .js file. for example, I write the external function in .js file and it will show the notification if there is an error. I have tried to import Antd then use Antd.notification.open(opens). this code doesn't work.

Ant Design Notification link is here: https://www.antdv.com/components/notification/