types icon indicating copy to clipboard operation
types copied to clipboard

Types for TWA SDK

Results 6 types issues
Sort by recently updated
recently updated
newest added

Hello! I am using this repo as types for the official sdk in my project, so I implemented BiometricManager (7.2). I would make any changes if needed.

Wrong typing for `WebApp.requestContact` method. Provided type requires callback of type `(access: boolean) => unknown` meanwhile `(access: boolean, result: ???) => unknown` works just fine with result of method call...

Under WebApp type: openLink: (link: string, options?: { try_instant_view: boolean }) => void; it should have try_browser: boolean next to try_instant_view

The second parameter was missing from the typing of the `authenticate` method. https://core.telegram.org/bots/webapps#biometricmanager:~:text=If%20so%2C%20the%20second%20argument%20will%20be%20a%20biometric%20token.

![Image](https://github.com/user-attachments/assets/0fa3176c-b305-46f9-b8e3-8b2d0e76c7f2)