Skip to content

Commit a917e79

Browse files
fix: re-generate types based on specifciation updates (GoogleChromeLabs#156)
1 parent 9cc15af commit a917e79

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

out/gen/main.d.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,8 +924,14 @@ export declare namespace Emulation {
924924
};
925925
}
926926
export 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+
}
976987
export type NetworkCommand =
977988
| Network.AddIntercept
978989
| Network.ContinueRequest

src/gen/main.ts

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -926,8 +926,14 @@ export namespace Emulation {
926926
};
927927
}
928928
export 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+
}
978989
export type NetworkCommand =
979990
| Network.AddIntercept
980991
| Network.ContinueRequest

0 commit comments

Comments
 (0)