From e3be328a98a76aff295f7287cd70d8c826bc46aa Mon Sep 17 00:00:00 2001 From: Luigi Date: Mon, 13 Feb 2023 12:05:31 +0100 Subject: [PATCH] update tsconfig --- .../blocks/product-elements/product-image-gallery/index.ts | 1 + tsconfig.json | 1 + 2 files changed, 2 insertions(+) diff --git a/assets/js/atomic/blocks/product-elements/product-image-gallery/index.ts b/assets/js/atomic/blocks/product-elements/product-image-gallery/index.ts index 7c00f9ccf6e..ca81e18eee9 100644 --- a/assets/js/atomic/blocks/product-elements/product-image-gallery/index.ts +++ b/assets/js/atomic/blocks/product-elements/product-image-gallery/index.ts @@ -13,6 +13,7 @@ import metadata from './block.json'; registerBlockSingleProductTemplate( { registerBlockFn: () => { + // @ts-expect-error: `registerBlockType` is a function that is typed in WordPress core. registerBlockType( metadata, { icon, edit, diff --git a/tsconfig.json b/tsconfig.json index 5dccc2bbc15..2a1a5b6c03b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "include": [ "./assets/js/**/*", "./packages/checkout/**/*", + "./assets/js/blocks/**/block.json", "./assets/js/atomic/blocks/**/block.json", "./assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/**/block.json", "./storybook/**/*",