I use $filters in my Vue JS 3 project and to use it with Typescript I created vue.d.ts file:
export {}
declare module 'vue' {
interface ComponentCustomProperties {
$filters: any;
}
}
Now, I can add filters like this:
vueApp.config.globalProperties.$filters = {
...
}