Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#69235 fix(telegram-web-app): Fix Biometric…
Browse files Browse the repository at this point in the history
…Manager typings (events) by @hopleus
  • Loading branch information
hopleus authored Apr 1, 2024
1 parent bf9173c commit e5d07ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion types/telegram-web-app/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ interface BiometricManager {
* the object's first use. If an optional callback parameter was passed, the callback
* function will be called when the object is initialized.
*/
init: (callback?: (isAccessGranted: boolean) => void) => BiometricManager;
init: (callback?: () => void) => BiometricManager;
/**
* A method that requests permission to use biometrics according to the params
* argument of type BiometricRequestAccessParams. If an optional callback
Expand Down
1 change: 1 addition & 0 deletions types/telegram-web-app/telegram-web-app-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,5 @@ app.onEvent("contactRequested", (req) => {
}
});

app.BiometricManager.init(() => console.log("init"));
app.BiometricManager.openSettings();

0 comments on commit e5d07ac

Please sign in to comment.