Use typeof to simplify JSDoc class types
This commit is contained in:
@@ -19,9 +19,7 @@ import {create as createTransform, compose as composeTransform} from '../../tran
|
||||
|
||||
|
||||
/**
|
||||
* @type {Object<ReplayType,
|
||||
* function(new: CanvasReplay, number, import("../../extent.js").Extent,
|
||||
* number, number, boolean, Array<import("../canvas.js").DeclutterGroup>)>}
|
||||
* @type {Object<ReplayType, typeof CanvasReplay>}
|
||||
*/
|
||||
const BATCH_CONSTRUCTORS = {
|
||||
'Circle': CanvasPolygonReplay,
|
||||
|
||||
@@ -19,9 +19,7 @@ import WebGLTextReplay from '../webgl/TextReplay.js';
|
||||
const HIT_DETECTION_SIZE = [1, 1];
|
||||
|
||||
/**
|
||||
* @type {Object<import("../ReplayType.js").default,
|
||||
* function(new: import("./Replay.js").default, number,
|
||||
* import("../../extent.js").Extent)>}
|
||||
* @type {Object<import("../ReplayType.js").default, typeof import("./Replay.js").default>}
|
||||
*/
|
||||
const BATCH_CONSTRUCTORS = {
|
||||
'Circle': WebGLCircleReplay,
|
||||
|
||||
Reference in New Issue
Block a user