mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Update TypeScript to version 4.6.2
and work-around stricter type checks
I'm guessing that we're now running into the class-related improvements mentioned in https://devblogs.microsoft.com/typescript/announcing-typescript-4-6/#target-es2022 To unblock this update, and any future ones, this patch simply tweaks the JSDocs to get `gulp typestest` to run without errors.
This commit is contained in:
parent
3e593cfc1d
commit
6f600befdd
5 changed files with 33 additions and 12 deletions
|
@ -57,7 +57,7 @@ class BaseCanvasFactory {
|
|||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @ignore
|
||||
*/
|
||||
_createCanvas(width, height) {
|
||||
unreachable("Abstract method `_createCanvas` called.");
|
||||
|
@ -96,7 +96,7 @@ class BaseCMapReaderFactory {
|
|||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @ignore
|
||||
*/
|
||||
_fetchData(url, compressionType) {
|
||||
unreachable("Abstract method `_fetchData` called.");
|
||||
|
@ -129,7 +129,7 @@ class BaseStandardFontDataFactory {
|
|||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @ignore
|
||||
*/
|
||||
_fetchData(url) {
|
||||
unreachable("Abstract method `_fetchData` called.");
|
||||
|
@ -165,7 +165,7 @@ class BaseSVGFactory {
|
|||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @ignore
|
||||
*/
|
||||
_createSVG(type) {
|
||||
unreachable("Abstract method `_createSVG` called.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue