From 474e5fc50d2df7811bd848daf73441cdfb8623fa Mon Sep 17 00:00:00 2001 From: Andrew Serong <14988353+andrewserong@users.noreply.github.com> Date: Fri, 13 Aug 2021 14:43:01 +1000 Subject: [PATCH] Update types --- packages/block-editor/src/hooks/style.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/block-editor/src/hooks/style.js b/packages/block-editor/src/hooks/style.js index 00148dc2f8982b..9bc7c0e5997c8f 100644 --- a/packages/block-editor/src/hooks/style.js +++ b/packages/block-editor/src/hooks/style.js @@ -149,7 +149,7 @@ function addAttribute( settings ) { * with values providing the style paths to be omitted from serialization. * * @constant - * @type {Record} + * @type {Record} */ const skipSerializationPathsEdit = { [ `${ BORDER_SUPPORT_KEY }.__experimentalSkipSerialization` ]: [ 'border' ], @@ -174,7 +174,7 @@ const skipSerializationPathsEdit = { * the support is saved. * * @constant - * @type {Record} + * @type {Record} */ const skipSerializationPathsSave = { ...skipSerializationPathsEdit, @@ -184,10 +184,10 @@ const skipSerializationPathsSave = { /** * Override props assigned to save component to inject the CSS variables definition. * - * @param {Object} props Additional props applied to save element. - * @param {Object} blockType Block type. - * @param {Object} attributes Block attributes. - * @param {Object} skipPaths An object of keys and paths to skip serialization. + * @param {Object} props Additional props applied to save element. + * @param {Object} blockType Block type. + * @param {Object} attributes Block attributes. + * @param {?Record} skipPaths An object of keys and paths to skip serialization. * * @return {Object} Filtered props applied to save element. */