You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportconstonHistoryStateUpdated: CustomChromeEvent<(callback: (details: {/** * The ID of the tab in which the navigation occurs. */tabId: number,url: string,/** * The ID of the process that runs the renderer for this frame. */processId: number,/** * 0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique within a tab. */frameId: number,/** * The ID of the parent frame, or `-1` if this is the main frame. * * @since Chrome 74 */parentFrameId: number,/** * Cause of the navigation. */transitionType: TransitionType,/** * A list of transition qualifiers. */transitionQualifiers: TransitionQualifier[],/** * The time when the navigation was committed, in milliseconds since the epoch. */timeStamp: number,/** * A UUID of the document loaded. * * @since Chrome 106 */documentId: string,/** * A UUID of the parent document owning this frame. This is not set if there is no parent. * * @since Chrome 106 */parentDocumentId?: string,/** * The lifecycle the document is in. * * @since Chrome 106 */documentLifecycle: extensionTypes.DocumentLifecycle,/** * The type of frame the navigation occurred in. * * @since Chrome 106 */frameType: extensionTypes.FrameType,},)=>void,filters?: {/** * Conditions that the URL being navigated to must satisfy. The 'schemes' and 'ports' fields of UrlFilter are ignored for this event. */url: events.UrlFilter[],},)=>void>;
Suggesting to auto-generate a dummy type for each object parameter:
Currently the parameters for
addListener
are inlined, i.e. types/hints are available only in an inline listener:but we can't use types in a standalone listener function outside of addListener (e.g. to toggle it somewhere else):
Here's the current generated code for reference:
spoiler
Suggesting to auto-generate a dummy type for each object parameter:
These dummy types would be also exported, so we can use them in typescript:
as well as in jsdoc:
The text was updated successfully, but these errors were encountered: