@types/chrome 0.0.318 → 0.0.319

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.
Files changed (3) hide show
  1. chrome/README.md +1 -1
  2. chrome/index.d.ts +8 -1
  3. chrome/package.json +2 -2
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (https://developer.chrome.com/
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 01 May 2025 18:02:33 GMT
11
+ * Last updated: Sun, 04 May 2025 20:34:17 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
 
14
14
  # Credits
chrome/index.d.ts CHANGED
@@ -7881,6 +7881,13 @@ declare namespace chrome {
7881
7881
  export function cancelJob(jobId: string): Promise<void>;
7882
7882
  export function cancelJob(jobId: string, callback: () => void): void;
7883
7883
 
7884
+ /**
7885
+ * Returns the status of the print job. This call will fail with a runtime error if the print job with the given `jobId` doesn't exist. `jobId`: The id of the print job to return the status of. This should be the same id received in a {@link SubmitJobResponse}.
7886
+ * @since Chrome 135
7887
+ */
7888
+ export function getJobStatus(jobId: string): Promise<`${JobStatus}`>;
7889
+ export function getJobStatus(jobId: string, callback: (status: `${JobStatus}`) => void): void;
7890
+
7884
7891
  /**
7885
7892
  * Returns the status and capabilities of the printer in CDD format. This call will fail with a runtime error if no printers with given id are installed.
7886
7893
  * Can return its result via Promise in Manifest V3 or later since Chrome 100.
@@ -7905,7 +7912,7 @@ declare namespace chrome {
7905
7912
  /**
7906
7913
  * Event fired when the status of the job is changed. This is only fired for the jobs created by this extension.
7907
7914
  */
7908
- export const onJobStatusChanged: chrome.events.Event<(jobId: string, status: JobStatus) => void>;
7915
+ export const onJobStatusChanged: chrome.events.Event<(jobId: string, status: `${JobStatus}`) => void>;
7909
7916
  }
7910
7917
 
7911
7918
  ////////////////////
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.318",
3
+ "version": "0.0.319",
4
4
  "description": "TypeScript definitions for chrome",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
6
6
  "license": "MIT",
@@ -94,6 +94,6 @@
94
94
  "@types/har-format": "*"
95
95
  },
96
96
  "peerDependencies": {},
97
- "typesPublisherContentHash": "39dd572dde0a000c6672487393ec0207178f22f69917ac341a5a2843835d7130",
97
+ "typesPublisherContentHash": "5b84f59dbd2c9c131afffbd07c9297dd648ea3d02b07634fa0b450b0e0715363",
98
98
  "typeScriptVersion": "5.1"
99
99
  }