Skip to content

Commit 42664dd

Browse files
fix: re-generate types based on specifciation updates (GoogleChromeLabs#166)
1 parent 5ec11c2 commit 42664dd

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

out/gen/main.d.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ export type BrowsingContextEvent =
397397
| BrowsingContext.ContextCreated
398398
| BrowsingContext.ContextDestroyed
399399
| BrowsingContext.DomContentLoaded
400+
| BrowsingContext.DownloadEnd
400401
| BrowsingContext.DownloadWillBegin
401402
| BrowsingContext.FragmentNavigated
402403
| BrowsingContext.HistoryUpdated
@@ -849,6 +850,7 @@ export declare namespace BrowsingContext {
849850
export declare namespace BrowsingContext {
850851
type HistoryUpdatedParameters = {
851852
context: BrowsingContext.BrowsingContext;
853+
timestamp: JsUint;
852854
url: string;
853855
};
854856
}
@@ -875,6 +877,28 @@ export declare namespace BrowsingContext {
875877
suggestedFilename: string;
876878
} & BrowsingContext.BaseNavigationInfo;
877879
}
880+
export declare namespace BrowsingContext {
881+
type DownloadEnd = {
882+
method: 'browsingContext.downloadEnd';
883+
params: BrowsingContext.DownloadEndParams;
884+
};
885+
}
886+
export declare namespace BrowsingContext {
887+
type DownloadEndParams =
888+
| BrowsingContext.DownloadCanceledParams
889+
| BrowsingContext.DownloadCompleteParams;
890+
}
891+
export declare namespace BrowsingContext {
892+
type DownloadCanceledParams = {
893+
status: 'canceled';
894+
} & BrowsingContext.BaseNavigationInfo;
895+
}
896+
export declare namespace BrowsingContext {
897+
type DownloadCompleteParams = {
898+
status: 'complete';
899+
filepath: string | null;
900+
} & BrowsingContext.BaseNavigationInfo;
901+
}
878902
export declare namespace BrowsingContext {
879903
type NavigationAborted = {
880904
method: 'browsingContext.navigationAborted';

src/gen/main.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ export type BrowsingContextEvent =
399399
| BrowsingContext.ContextCreated
400400
| BrowsingContext.ContextDestroyed
401401
| BrowsingContext.DomContentLoaded
402+
| BrowsingContext.DownloadEnd
402403
| BrowsingContext.DownloadWillBegin
403404
| BrowsingContext.FragmentNavigated
404405
| BrowsingContext.HistoryUpdated
@@ -851,6 +852,7 @@ export namespace BrowsingContext {
851852
export namespace BrowsingContext {
852853
export type HistoryUpdatedParameters = {
853854
context: BrowsingContext.BrowsingContext;
855+
timestamp: JsUint;
854856
url: string;
855857
};
856858
}
@@ -877,6 +879,28 @@ export namespace BrowsingContext {
877879
suggestedFilename: string;
878880
} & BrowsingContext.BaseNavigationInfo;
879881
}
882+
export namespace BrowsingContext {
883+
export type DownloadEnd = {
884+
method: 'browsingContext.downloadEnd';
885+
params: BrowsingContext.DownloadEndParams;
886+
};
887+
}
888+
export namespace BrowsingContext {
889+
export type DownloadEndParams =
890+
| BrowsingContext.DownloadCanceledParams
891+
| BrowsingContext.DownloadCompleteParams;
892+
}
893+
export namespace BrowsingContext {
894+
export type DownloadCanceledParams = {
895+
status: 'canceled';
896+
} & BrowsingContext.BaseNavigationInfo;
897+
}
898+
export namespace BrowsingContext {
899+
export type DownloadCompleteParams = {
900+
status: 'complete';
901+
filepath: string | null;
902+
} & BrowsingContext.BaseNavigationInfo;
903+
}
880904
export namespace BrowsingContext {
881905
export type NavigationAborted = {
882906
method: 'browsingContext.navigationAborted';

0 commit comments

Comments
 (0)