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])
})
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beff73-3150f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beff73-3150f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?