WXL
4 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export type GlobalWorkerOptionsType = {
    /**
     * - Defines global port for worker
     * process. Overrides the `workerSrc` option.
     */
    workerPort: Worker | null;
    /**
     * - 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.
     */
    workerSrc: string;
};
/**
 * @typedef {Object} GlobalWorkerOptionsType
 * @property {Worker | null} workerPort - Defines global port for worker
 *   process. Overrides the `workerSrc` option.
 * @property {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.
 */
/** @type {GlobalWorkerOptionsType} */
export const GlobalWorkerOptions: GlobalWorkerOptionsType;