pdfjs-dist
Version:
Generic build of Mozilla's PDF.js library.
26 lines (25 loc) • 759 B
TypeScript
export class GlobalWorkerOptions {
static "__#39@#port": null;
static "__#39@#src": string;
/**
* @param {Worker | null} workerPort - Defines global port for worker process.
* Overrides the `workerSrc` option.
*/
static set workerPort(val: Worker | null);
/**
* @type {Worker | null}
*/
static get workerPort(): Worker | null;
/**
* @param {string} workerSrc - A string containing the path and filename of
* the worker file.
*
* NOTE: The `workerSrc` option should always be set, in order to prevent
* any issues when using the PDF.js library.
*/
static set workerSrc(val: string);
/**
* @type {string}
*/
static get workerSrc(): string;
}