Skip to content

Commit daf944c

Browse files
fix: re-generate types based on specifciation updates (GoogleChromeLabs#183)
1 parent 2566b69 commit daf944c

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

out/gen/main.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,7 @@ export declare namespace BrowsingContext {
950950
}
951951
export type EmulationCommand =
952952
| Emulation.SetGeolocationOverride
953+
| Emulation.SetLocaleOverride
953954
| Emulation.SetScreenOrientationOverride;
954955
export declare namespace Emulation {
955956
type SetGeolocationOverride = {
@@ -1018,6 +1019,22 @@ export declare namespace Emulation {
10181019
type: 'positionUnavailable';
10191020
};
10201021
}
1022+
export declare namespace Emulation {
1023+
type SetLocaleOverride = {
1024+
method: 'emulation.setLocaleOverride';
1025+
params: Emulation.SetLocaleOverrideParameters;
1026+
};
1027+
}
1028+
export declare namespace Emulation {
1029+
type SetLocaleOverrideParameters = {
1030+
locale: string | null;
1031+
contexts?: [
1032+
BrowsingContext.BrowsingContext,
1033+
...BrowsingContext.BrowsingContext[],
1034+
];
1035+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1036+
};
1037+
}
10211038
export declare namespace Emulation {
10221039
type SetScreenOrientationOverride = {
10231040
method: 'emulation.setScreenOrientationOverride';

src/gen/main.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@ export namespace BrowsingContext {
952952
}
953953
export type EmulationCommand =
954954
| Emulation.SetGeolocationOverride
955+
| Emulation.SetLocaleOverride
955956
| Emulation.SetScreenOrientationOverride;
956957
export namespace Emulation {
957958
export type SetGeolocationOverride = {
@@ -1020,6 +1021,22 @@ export namespace Emulation {
10201021
type: 'positionUnavailable';
10211022
};
10221023
}
1024+
export namespace Emulation {
1025+
export type SetLocaleOverride = {
1026+
method: 'emulation.setLocaleOverride';
1027+
params: Emulation.SetLocaleOverrideParameters;
1028+
};
1029+
}
1030+
export namespace Emulation {
1031+
export type SetLocaleOverrideParameters = {
1032+
locale: string | null;
1033+
contexts?: [
1034+
BrowsingContext.BrowsingContext,
1035+
...BrowsingContext.BrowsingContext[],
1036+
];
1037+
userContexts?: [Browser.UserContext, ...Browser.UserContext[]];
1038+
};
1039+
}
10231040
export namespace Emulation {
10241041
export type SetScreenOrientationOverride = {
10251042
method: 'emulation.setScreenOrientationOverride';

0 commit comments

Comments
 (0)