@types/chrome 0.0.215 → 0.0.216
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 +9 -1
- 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: Sat, 18 Feb 2023 02: | 
| 11 | 
            +
             * Last updated: Sat, 18 Feb 2023 05:02:40 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
    
    | @@ -312,6 +312,14 @@ declare namespace chrome.action { | |
| 312 312 | 
             
                 */
         | 
| 313 313 | 
             
                export function setBadgeText(details: BadgeTextDetails, callback?: () => void): void;
         | 
| 314 314 |  | 
| 315 | 
            +
                /**
         | 
| 316 | 
            +
                 * Since Chrome 88.
         | 
| 317 | 
            +
                 * Sets the icon for the action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element,
         | 
| 318 | 
            +
                 * or as dictionary of either one of those. Either the path or the imageData property must be specified.
         | 
| 319 | 
            +
                 * @return The `setIcon` method provides its result via callback or returned as a `Promise` (MV3 only). Since Chrome 96.
         | 
| 320 | 
            +
                 */
         | 
| 321 | 
            +
                export function setIcon(details: TabIconDetails): Promise<void>;
         | 
| 322 | 
            +
             | 
| 315 323 | 
             
                /**
         | 
| 316 324 | 
             
                 * Since Chrome 88.
         | 
| 317 325 | 
             
                 * Sets the icon for the action. The icon can be specified either as the path to an image file or as the pixel data from a canvas element,
         | 
| @@ -319,7 +327,7 @@ declare namespace chrome.action { | |
| 319 327 | 
             
                 * @param callback The callback parameter should be a function that looks like this:
         | 
| 320 328 | 
             
                 * () => {...}
         | 
| 321 329 | 
             
                 */
         | 
| 322 | 
            -
                export function setIcon(details: TabIconDetails, callback | 
| 330 | 
            +
                export function setIcon(details: TabIconDetails, callback: () => void): void;
         | 
| 323 331 |  | 
| 324 332 | 
             
                /**
         | 
| 325 333 | 
             
                 * Since Chrome 88.
         | 
    
        chrome/package.json
    CHANGED
    
    | @@ -1,6 +1,6 @@ | |
| 1 1 | 
             
            {
         | 
| 2 2 | 
             
                "name": "@types/chrome",
         | 
| 3 | 
            -
                "version": "0.0. | 
| 3 | 
            +
                "version": "0.0.216",
         | 
| 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": "386c0a038a481eb96cf125ed1aff3926356f138d5ec127abed722b2106e0f2f0",
         | 
| 97 97 | 
             
                "typeScriptVersion": "4.2"
         | 
| 98 98 | 
             
            }
         |