mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-12 19:59:02 +08:00
webappsec-credential-management: Fix lib.dom error (#27797)
This commit is contained in:
@@ -25,6 +25,9 @@ interface GlobalFetch {
|
||||
// variant for navigator.credentials monkey patching
|
||||
fetch(url: Request|string, init?: CMRequestInit): Promise<Response>;
|
||||
}
|
||||
interface WindowOrWorkerGlobalScope {
|
||||
fetch(url: Request|string, init?: CMRequestInit): Promise<Response>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Variant of TS 2.2 {@link RequestInit} that permits a
|
||||
|
||||
@@ -214,7 +214,7 @@ function signOutDeprecated() {
|
||||
}
|
||||
|
||||
navigator.credentials.requireUserMediation().then(() => {
|
||||
document.location.assign('/');
|
||||
document.location!.assign('/');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -224,7 +224,7 @@ function signOut() {
|
||||
}
|
||||
|
||||
navigator.credentials.preventSilentAccess().then(() => {
|
||||
document.location.assign('/');
|
||||
document.location!.assign('/');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user