How to make connection between a typescript file and a single file components in vue.js i have a function in my single file components