Vue+ts project, how can external js methods be introduced and directly used as methods methods within vue?

in the case of non-ts, you can directly

import * as methods from "./index.js"

vue({
  methods:methods  
})
The methods exported in index.js can be used directly in

components, such as

index.js exported

helloworld();

In

components, you can directly

this.helloWorld()

it won"t work after using ts. What"s going on? can it be like a filter

?
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
})
Menu