Skip to content

Commit ac66a29

Browse files
fix: re-generate types based on specifciation updates (GoogleChromeLabs#83)
1 parent 94e7bd2 commit ac66a29

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

out/gen/main.d.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ export type CommandData =
2424
| ScriptCommand
2525
| SessionCommand
2626
| StorageCommand
27-
| WebExtensionsCommand;
27+
| WebExtensionCommand;
2828
export type ResultData =
2929
| BrowsingContextResult
3030
| EmptyResult
3131
| NetworkResult
3232
| ScriptResult
3333
| SessionResult
3434
| StorageResult
35-
| WebExtensionsResult;
35+
| WebExtensionResult;
3636
export type EmptyParams = Extensible;
3737
export type Message = CommandResponse | ErrorResponse | Event;
3838
export type ErrorResponse = {
@@ -2260,10 +2260,8 @@ export declare namespace Input {
22602260
files: [...string[]];
22612261
};
22622262
}
2263-
export type WebExtensionsCommand =
2264-
| WebExtension.Install
2265-
| WebExtension.Uninstall;
2266-
export type WebExtensionsResult = WebExtension.InstallResult;
2263+
export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
2264+
export type WebExtensionResult = WebExtension.InstallResult;
22672265
export declare namespace WebExtension {
22682266
type Extension = string;
22692267
}

src/gen/main.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ export type CommandData =
2424
| ScriptCommand
2525
| SessionCommand
2626
| StorageCommand
27-
| WebExtensionsCommand;
27+
| WebExtensionCommand;
2828
export type ResultData =
2929
| BrowsingContextResult
3030
| EmptyResult
3131
| NetworkResult
3232
| ScriptResult
3333
| SessionResult
3434
| StorageResult
35-
| WebExtensionsResult;
35+
| WebExtensionResult;
3636
export type EmptyParams = Extensible;
3737
export type Message = CommandResponse | ErrorResponse | Event;
3838
export type ErrorResponse = {
@@ -2264,10 +2264,8 @@ export namespace Input {
22642264
files: [...string[]];
22652265
};
22662266
}
2267-
export type WebExtensionsCommand =
2268-
| WebExtension.Install
2269-
| WebExtension.Uninstall;
2270-
export type WebExtensionsResult = WebExtension.InstallResult;
2267+
export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
2268+
export type WebExtensionResult = WebExtension.InstallResult;
22712269
export namespace WebExtension {
22722270
export type Extension = string;
22732271
}

0 commit comments

Comments
 (0)