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
Copy file name to clipboardExpand all lines: types/chrome/index.d.ts
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -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.
0 commit comments