From f5a8ad63f9a50cb40444deee80d7fbed617c8b88 Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Tue, 13 Nov 2018 17:32:06 +0100 Subject: [PATCH] Improve typing --- src/ol/render/canvas/InstructionsBuilder.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ol/render/canvas/InstructionsBuilder.js b/src/ol/render/canvas/InstructionsBuilder.js index b24c647a42..1eaebb4c69 100644 --- a/src/ol/render/canvas/InstructionsBuilder.js +++ b/src/ol/render/canvas/InstructionsBuilder.js @@ -25,9 +25,9 @@ import { * @property {Array<*>} instructions The rendering instructions. * @property {Array<*>} hitDetectionInstructions The rendering hit detection instructions. * @property {Array} coordinates The array of all coordinates. - * @property {!Object} textStates The text states (decluttering). - * @property {!Object} fillStates The fill states (decluttering). - * @property {!Object} strokeStates The stroke states (decluttering). + * @property {!Object} [textStates] The text states (decluttering). + * @property {!Object} [fillStates] The fill states (decluttering). + * @property {!Object} [strokeStates] The stroke states (decluttering). */ @@ -306,7 +306,7 @@ class CanvasInstructionsBuilder extends VectorContext { } /** - * @return {Object} the serializable instructions. + * @return {SerializableInstructions} the serializable instructions. */ finish() { return {