File tree Expand file tree Collapse file tree 2 files changed +26
-4
lines changed
Expand file tree Collapse file tree 2 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -924,8 +924,14 @@ export declare namespace Emulation {
924924 } ;
925925}
926926export declare namespace Emulation {
927- type SetGeolocationOverrideParameters = {
928- coordinates : Emulation . GeolocationCoordinates | null ;
927+ type SetGeolocationOverrideParameters = (
928+ | {
929+ coordinates : Emulation . GeolocationCoordinates | null ;
930+ }
931+ | {
932+ error : Emulation . GeolocationPositionError ;
933+ }
934+ ) & {
929935 contexts ?: [
930936 BrowsingContext . BrowsingContext ,
931937 ...BrowsingContext . BrowsingContext [ ] ,
@@ -973,6 +979,11 @@ export declare namespace Emulation {
973979 speed ?: number | null ;
974980 } ;
975981}
982+ export declare namespace Emulation {
983+ type GeolocationPositionError = {
984+ type : 'positionUnavailable' ;
985+ } ;
986+ }
976987export type NetworkCommand =
977988 | Network . AddIntercept
978989 | Network . ContinueRequest
Original file line number Diff line number Diff line change @@ -926,8 +926,14 @@ export namespace Emulation {
926926 } ;
927927}
928928export namespace Emulation {
929- export type SetGeolocationOverrideParameters = {
930- coordinates : Emulation . GeolocationCoordinates | null ;
929+ export type SetGeolocationOverrideParameters = (
930+ | {
931+ coordinates : Emulation . GeolocationCoordinates | null ;
932+ }
933+ | {
934+ error : Emulation . GeolocationPositionError ;
935+ }
936+ ) & {
931937 contexts ?: [
932938 BrowsingContext . BrowsingContext ,
933939 ...BrowsingContext . BrowsingContext [ ] ,
@@ -975,6 +981,11 @@ export namespace Emulation {
975981 speed ?: number | null ;
976982 } ;
977983}
984+ export namespace Emulation {
985+ export type GeolocationPositionError = {
986+ type : 'positionUnavailable' ;
987+ } ;
988+ }
978989export type NetworkCommand =
979990 | Network . AddIntercept
980991 | Network . ContinueRequest
You can’t perform that action at this time.
0 commit comments