some type corrections

This commit is contained in:
Simon Seyock
2019-10-09 10:33:07 +02:00
parent 2483fbd26b
commit 5b1106ac23
3 changed files with 5 additions and 5 deletions

View File

@@ -39,10 +39,10 @@ export function VOID() {}
export function memoizeOne(fn) {
let called = false;
/** @type ReturnType */
/** @type {ReturnType} */
let lastResult;
/** @type Array<any> */
/** @type {Array<any>} */
let lastArgs;
let lastThis;

View File

@@ -401,7 +401,7 @@ class WebGLPointsLayerRenderer extends WebGLLayerRenderer {
}
}
/** @type import('./Layer').WebGLWorkerGenerateBuffersMessage */
/** @type {import('./Layer').WebGLWorkerGenerateBuffersMessage} */
const message = {
type: WebGLWorkerMessageType.GENERATE_BUFFERS,
renderInstructions: this.renderInstructions_.buffer,
@@ -412,7 +412,7 @@ class WebGLPointsLayerRenderer extends WebGLLayerRenderer {
this.worker_.postMessage(message, [this.renderInstructions_.buffer]);
this.renderInstructions_ = null;
/** @type import('./Layer').WebGLWorkerGenerateBuffersMessage */
/** @type {import('./Layer').WebGLWorkerGenerateBuffersMessage} */
if (this.hitDetectionEnabled_) {
const hitMessage = {
type: WebGLWorkerMessageType.GENERATE_BUFFERS,

View File

@@ -25,7 +25,7 @@ import TileImage from './TileImage.js';
* Higher values can increase reprojection performance, but decrease precision.
* @property {Array<number>} [resolutions] Supported resolutions as given in IIIF 'scaleFactors'
* @property {import("../size.js").Size} size Size of the image [width, height].
* @property {import("../size.js").Size[]} [sizes] Supported scaled image sizes.
* @property {Array<import("../size.js").Size>} [sizes] Supported scaled image sizes.
* Content of the IIIF info.json 'sizes' property, but as array of Size objects.
* @property {import("./State.js").default} [state] Source state.
* @property {Array<string>} [supports=[]] Supported IIIF region and size calculation