@types/chrome 0.0.239 → 0.0.241
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- chrome/README.md +1 -1
 - chrome/index.d.ts +12 -7
 - chrome/package.json +2 -2
 
    
        chrome/README.md
    CHANGED
    
    | 
         @@ -8,7 +8,7 @@ This package contains type definitions for Chrome extension development (http:// 
     | 
|
| 
       8 
8 
     | 
    
         
             
            Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
10 
     | 
    
         
             
            ### Additional Details
         
     | 
| 
       11 
     | 
    
         
            -
             * Last updated:  
     | 
| 
      
 11 
     | 
    
         
            +
             * Last updated: Wed, 12 Jul 2023 07:32:45 GMT
         
     | 
| 
       12 
12 
     | 
    
         
             
             * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
         
     | 
| 
       13 
13 
     | 
    
         
             
             * Global values: `chrome`
         
     | 
| 
       14 
14 
     | 
    
         | 
    
        chrome/index.d.ts
    CHANGED
    
    | 
         @@ -6813,6 +6813,9 @@ declare namespace chrome.serial.onReceiveError { 
     | 
|
| 
       6813 
6813 
     | 
    
         
             
                export function addListener(callback: (info: OnReceiveErrorInfo) => void): void;
         
     | 
| 
       6814 
6814 
     | 
    
         
             
            }
         
     | 
| 
       6815 
6815 
     | 
    
         | 
| 
      
 6816 
     | 
    
         
            +
            type DocumentLifecycle = 'prerender' | 'active' | 'cached' | 'pending_deletion';
         
     | 
| 
      
 6817 
     | 
    
         
            +
            type FrameType = 'outermost_frame' | 'fenced_frame' | 'sub_frame';
         
     | 
| 
      
 6818 
     | 
    
         
            +
             
     | 
| 
       6816 
6819 
     | 
    
         
             
            ////////////////////
         
     | 
| 
       6817 
6820 
     | 
    
         
             
            // Runtime
         
     | 
| 
       6818 
6821 
     | 
    
         
             
            ////////////////////
         
     | 
| 
         @@ -6910,7 +6913,7 @@ declare namespace chrome.runtime { 
     | 
|
| 
       6910 
6913 
     | 
    
         
             
                     * The lifecycle the document that opened the connection is in at the time the port was created. Note that the lifecycle state of the document may have changed since port creation.
         
     | 
| 
       6911 
6914 
     | 
    
         
             
                     * @since Chrome 106.
         
     | 
| 
       6912 
6915 
     | 
    
         
             
                     */
         
     | 
| 
       6913 
     | 
    
         
            -
                    documentLifecycle?:  
     | 
| 
      
 6916 
     | 
    
         
            +
                    documentLifecycle?: DocumentLifecycle | undefined;
         
     | 
| 
       6914 
6917 
     | 
    
         
             
                    /**
         
     | 
| 
       6915 
6918 
     | 
    
         
             
                     * A UUID of the document that opened the connection.
         
     | 
| 
       6916 
6919 
     | 
    
         
             
                     * @since Chrome 106.
         
     | 
| 
         @@ -7024,6 +7027,7 @@ declare namespace chrome.runtime { 
     | 
|
| 
       7024 
7027 
     | 
    
         
             
                    | 'declarativeContent'
         
     | 
| 
       7025 
7028 
     | 
    
         
             
                    | 'declarativeNetRequest'
         
     | 
| 
       7026 
7029 
     | 
    
         
             
                    | 'declarativeNetRequestFeedback'
         
     | 
| 
      
 7030 
     | 
    
         
            +
                    | 'declarativeNetRequestWithHostAccess'
         
     | 
| 
       7027 
7031 
     | 
    
         
             
                    | 'declarativeWebRequest'
         
     | 
| 
       7028 
7032 
     | 
    
         
             
                    | 'desktopCapture'
         
     | 
| 
       7029 
7033 
     | 
    
         
             
                    | 'documentScan'
         
     | 
| 
         @@ -7062,6 +7066,7 @@ declare namespace chrome.runtime { 
     | 
|
| 
       7062 
7066 
     | 
    
         
             
                    | 'scripting'
         
     | 
| 
       7063 
7067 
     | 
    
         
             
                    | 'search'
         
     | 
| 
       7064 
7068 
     | 
    
         
             
                    | 'sessions'
         
     | 
| 
      
 7069 
     | 
    
         
            +
                    | 'sidePanel'
         
     | 
| 
       7065 
7070 
     | 
    
         
             
                    | 'signedInDevices'
         
     | 
| 
       7066 
7071 
     | 
    
         
             
                    | 'storage'
         
     | 
| 
       7067 
7072 
     | 
    
         
             
                    | 'system.cpu'
         
     | 
| 
         @@ -10691,11 +10696,11 @@ declare namespace chrome.webNavigation { 
     | 
|
| 
       10691 
10696 
     | 
    
         
             
                    /** A UUID of the document loaded. */
         
     | 
| 
       10692 
10697 
     | 
    
         
             
                    documentId: string;
         
     | 
| 
       10693 
10698 
     | 
    
         
             
                    /** The lifecycle the document is in. */
         
     | 
| 
       10694 
     | 
    
         
            -
                    documentLifecycle:  
     | 
| 
      
 10699 
     | 
    
         
            +
                    documentLifecycle: DocumentLifecycle;
         
     | 
| 
       10695 
10700 
     | 
    
         
             
                    /** True if the last navigation in this frame was interrupted by an error, i.e. the onErrorOccurred event fired. */
         
     | 
| 
       10696 
10701 
     | 
    
         
             
                    errorOccurred: boolean;
         
     | 
| 
       10697 
10702 
     | 
    
         
             
                    /** The type of frame the navigation occurred in. */
         
     | 
| 
       10698 
     | 
    
         
            -
                    frameType:  
     | 
| 
      
 10703 
     | 
    
         
            +
                    frameType: FrameType;
         
     | 
| 
       10699 
10704 
     | 
    
         
             
                    /** A UUID of the parent document owning this frame. This is not set if there is no parent. */
         
     | 
| 
       10700 
10705 
     | 
    
         
             
                    parentDocumentId?: string | undefined;
         
     | 
| 
       10701 
10706 
     | 
    
         
             
                    /** ID of frame that wraps the frame. Set to -1 of no parent frame exists. */
         
     | 
| 
         @@ -10734,11 +10739,11 @@ declare namespace chrome.webNavigation { 
     | 
|
| 
       10734 
10739 
     | 
    
         
             
                    /** 0 indicates the navigation happens in the tab content window; a positive value indicates navigation in a subframe. Frame IDs are unique for a given tab and process. */
         
     | 
| 
       10735 
10740 
     | 
    
         
             
                    frameId: number;
         
     | 
| 
       10736 
10741 
     | 
    
         
             
                    /** The type of frame the navigation occurred in. */
         
     | 
| 
       10737 
     | 
    
         
            -
                    frameType:  
     | 
| 
      
 10742 
     | 
    
         
            +
                    frameType: FrameType;
         
     | 
| 
       10738 
10743 
     | 
    
         
             
                    /** A UUID of the document loaded. (This is not set for onBeforeNavigate callbacks.) */
         
     | 
| 
       10739 
10744 
     | 
    
         
             
                    documentId?: string | undefined;
         
     | 
| 
       10740 
10745 
     | 
    
         
             
                    /** The lifecycle the document is in. */
         
     | 
| 
       10741 
     | 
    
         
            -
                    documentLifecycle:  
     | 
| 
      
 10746 
     | 
    
         
            +
                    documentLifecycle: DocumentLifecycle;
         
     | 
| 
       10742 
10747 
     | 
    
         
             
                    /** A UUID of the parent document owning this frame. This is not set if there is no parent. */
         
     | 
| 
       10743 
10748 
     | 
    
         
             
                    parentDocumentId?: string | undefined;
         
     | 
| 
       10744 
10749 
     | 
    
         
             
                    /**
         
     | 
| 
         @@ -11006,8 +11011,8 @@ declare namespace chrome.webRequest { 
     | 
|
| 
       11006 
11011 
     | 
    
         
             
                    /** Optional. The HTTP request headers that are going to be sent out with this request. */
         
     | 
| 
       11007 
11012 
     | 
    
         
             
                    requestHeaders?: HttpHeader[] | undefined;
         
     | 
| 
       11008 
11013 
     | 
    
         
             
                    documentId: string;
         
     | 
| 
       11009 
     | 
    
         
            -
                    documentLifecycle:  
     | 
| 
       11010 
     | 
    
         
            -
                    frameType:  
     | 
| 
      
 11014 
     | 
    
         
            +
                    documentLifecycle: DocumentLifecycle;
         
     | 
| 
      
 11015 
     | 
    
         
            +
                    frameType: FrameType;
         
     | 
| 
       11011 
11016 
     | 
    
         
             
                    frameId: number;
         
     | 
| 
       11012 
11017 
     | 
    
         
             
                    initiator?: string | undefined;
         
     | 
| 
       11013 
11018 
     | 
    
         
             
                    parentDocumentId?: string | undefined;
         
     | 
    
        chrome/package.json
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            {
         
     | 
| 
       2 
2 
     | 
    
         
             
                "name": "@types/chrome",
         
     | 
| 
       3 
     | 
    
         
            -
                "version": "0.0. 
     | 
| 
      
 3 
     | 
    
         
            +
                "version": "0.0.241",
         
     | 
| 
       4 
4 
     | 
    
         
             
                "description": "TypeScript definitions for Chrome extension development",
         
     | 
| 
       5 
5 
     | 
    
         
             
                "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
         
     | 
| 
       6 
6 
     | 
    
         
             
                "license": "MIT",
         
     | 
| 
         @@ -93,6 +93,6 @@ 
     | 
|
| 
       93 
93 
     | 
    
         
             
                    "@types/filesystem": "*",
         
     | 
| 
       94 
94 
     | 
    
         
             
                    "@types/har-format": "*"
         
     | 
| 
       95 
95 
     | 
    
         
             
                },
         
     | 
| 
       96 
     | 
    
         
            -
                "typesPublisherContentHash": " 
     | 
| 
      
 96 
     | 
    
         
            +
                "typesPublisherContentHash": "e03140d2bd377fedd113d628d9b020580ec8a9930b14eef67d9a7c45e6d4ff96",
         
     | 
| 
       97 
97 
     | 
    
         
             
                "typeScriptVersion": "4.3"
         
     | 
| 
       98 
98 
     | 
    
         
             
            }
         
     |