vue-tg implicitly refers to telegram-web-app types but doesn't explicitly import (let alone re-export) them.
This leaves user apps partially untyped, for example:

which is caused by referring to an unresolved type in vue-tg typings:

Note that the library's dependencies are not transitive in many environments, e.g. when using pnpm. Listing @types/telegram-web-app as the dependency of vue-tg doesn't automatically make it available in user's project.
Expected
vue-tg explicitly imports all types that it depends upon (this way, they will be picked by vite build / rollup and will be properly referred in dist/*.d.ts).
Better yet, vue-tg additionally explicitly re-exports main involved types such as WebAppInitData, so that they could be consumed by users without having to install @types/telegram-web-app and manage dependency versions on their own.
vue-tgimplicitly refers totelegram-web-apptypes but doesn't explicitly import (let alone re-export) them.This leaves user apps partially untyped, for example:

which is caused by referring to an unresolved type in vue-tg typings:

Note that the library's dependencies are not transitive in many environments, e.g. when using
pnpm. Listing@types/telegram-web-appas the dependency ofvue-tgdoesn't automatically make it available in user's project.Expected
vue-tgexplicitly imports all types that it depends upon (this way, they will be picked by vite build / rollup and will be properly referred indist/*.d.ts).Better yet,
vue-tgadditionally explicitly re-exports main involved types such asWebAppInitData, so that they could be consumed by users without having to install@types/telegram-web-appand manage dependency versions on their own.