types
types copied to clipboard
Types for TWA SDK
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.
