Skip to content

Commit e95b00e

Browse files
authored
fix: re-gen types based on the spec changes (GoogleChromeLabs#75)
1 parent e34881d commit e95b00e

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

out/gen/main.d.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ export type CommandData =
2323
| NetworkCommand
2424
| ScriptCommand
2525
| SessionCommand
26-
| StorageCommand;
26+
| StorageCommand
27+
| WebExtensionsCommand;
2728
export type ResultData =
2829
| BrowsingContextResult
2930
| EmptyResult
3031
| NetworkResult
3132
| ScriptResult
3233
| SessionResult
33-
| StorageResult;
34+
| StorageResult
35+
| WebExtensionsResult;
3436
export type EmptyParams = Extensible;
3537
export type Message = CommandResponse | ErrorResponse | Event;
3638
export type ErrorResponse = {
@@ -2258,8 +2260,9 @@ export declare namespace Input {
22582260
files: [...string[]];
22592261
};
22602262
}
2261-
export type WebExtensionsCommand = WebExtension.Install &
2262-
WebExtension.Uninstall;
2263+
export type WebExtensionsCommand =
2264+
| WebExtension.Install
2265+
| WebExtension.Uninstall;
22632266
export type WebExtensionsResult = WebExtension.InstallResult;
22642267
export declare namespace WebExtension {
22652268
type Extension = string;

src/gen/main.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ export type CommandData =
2323
| NetworkCommand
2424
| ScriptCommand
2525
| SessionCommand
26-
| StorageCommand;
26+
| StorageCommand
27+
| WebExtensionsCommand;
2728
export type ResultData =
2829
| BrowsingContextResult
2930
| EmptyResult
3031
| NetworkResult
3132
| ScriptResult
3233
| SessionResult
33-
| StorageResult;
34+
| StorageResult
35+
| WebExtensionsResult;
3436
export type EmptyParams = Extensible;
3537
export type Message = CommandResponse | ErrorResponse | Event;
3638
export type ErrorResponse = {
@@ -2262,8 +2264,9 @@ export namespace Input {
22622264
files: [...string[]];
22632265
};
22642266
}
2265-
export type WebExtensionsCommand = WebExtension.Install &
2266-
WebExtension.Uninstall;
2267+
export type WebExtensionsCommand =
2268+
| WebExtension.Install
2269+
| WebExtension.Uninstall;
22672270
export type WebExtensionsResult = WebExtension.InstallResult;
22682271
export namespace WebExtension {
22692272
export type Extension = string;

0 commit comments

Comments
 (0)