mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 01:57:20 +00:00
Enable Typescript noImplicitAny
(#33322)
Enable `noImplicitAny` and fix all issues. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
@ -114,7 +114,7 @@ async function login2FA() {
|
||||
}
|
||||
}
|
||||
|
||||
async function verifyAssertion(assertedCredential) {
|
||||
async function verifyAssertion(assertedCredential: any) { // TODO: Credential type does not work
|
||||
// Move data into Arrays in case it is super long
|
||||
const authData = new Uint8Array(assertedCredential.response.authenticatorData);
|
||||
const clientDataJSON = new Uint8Array(assertedCredential.response.clientDataJSON);
|
||||
@ -148,7 +148,7 @@ async function verifyAssertion(assertedCredential) {
|
||||
window.location.href = reply?.redirect ?? `${appSubUrl}/`;
|
||||
}
|
||||
|
||||
async function webauthnRegistered(newCredential) {
|
||||
async function webauthnRegistered(newCredential: any) { // TODO: Credential type does not work
|
||||
const attestationObject = new Uint8Array(newCredential.response.attestationObject);
|
||||
const clientDataJSON = new Uint8Array(newCredential.response.clientDataJSON);
|
||||
const rawId = new Uint8Array(newCredential.rawId);
|
||||
|
Reference in New Issue
Block a user