|
|
|
@ -356,6 +356,16 @@
|
|
|
|
|
<error line="4" column="36" severity="error" message="Could not find a declaration file for module 'wordpress-components'. '/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/wordpress-components/build/index.js' implicitly has an 'any' type.
|
|
|
|
|
If the '@wordpress/components' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordpress__components'" source="TS7016" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="node_modules/@types/wordpress__block-editor/index.d.ts">
|
|
|
|
|
<error line="21" column="14" severity="error" message="Cannot redeclare block-scoped variable 'store'." source="TS2451" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/utils/global-style.js">
|
|
|
|
|
<error line="5" column="10" severity="error" message="Module '"@wordpress/block-editor"' has no exported member '__experimentalGetSpacingClassesAndStyles'." source="TS2305" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/utils/products.js">
|
|
|
|
|
<error line="5" column="12" severity="error" message="Generic type 'Array<T>' requires 1 type argument(s)." source="TS2314" />
|
|
|
|
|
<error line="20" column="12" severity="error" message="Generic type 'Array<T>' requires 1 type argument(s)." source="TS2314" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/data/schema/selectors.js">
|
|
|
|
|
<error line="19" column="12" severity="error" message="Generic type 'Array<T>' requires 1 type argument(s)." source="TS2314" />
|
|
|
|
|
<error line="106" column="7" severity="error" message="Variable 'namespaceRoutes' implicitly has type 'any[]' in some locations where its type cannot be determined." source="TS7034" />
|
|
|
|
@ -574,15 +584,6 @@
|
|
|
|
|
<error line="4" column="12" severity="error" message="Generic type 'Array<T>' requires 1 type argument(s)." source="TS2314" />
|
|
|
|
|
<error line="13" column="12" severity="error" message="Generic type 'Array<T>' requires 1 type argument(s)." source="TS2314" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/base/components/block-error-boundary/index.tsx">
|
|
|
|
|
<error line="58" column="6" severity="error" message="Type '{ showErrorBlock: boolean; errorMessage: string | null; header: string | undefined; imageUrl: string | undefined; text: ReactNode; errorMessagePrefix: string | undefined; button: ReactNode; }' is not assignable to type 'BlockErrorProps' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
|
|
|
|
|
Types of property 'imageUrl' are incompatible.
|
|
|
|
|
Type 'string | undefined' is not assignable to type 'string'.
|
|
|
|
|
Type 'undefined' is not assignable to type 'string'." source="TS2375" />
|
|
|
|
|
<error line="58" column="6" severity="error" message="'BlockError' cannot be used as a JSX component.
|
|
|
|
|
Its return type 'ReactNode' is not a valid JSX element.
|
|
|
|
|
Type 'undefined' is not assignable to type 'Element | null'." source="TS2786" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/base/utils/render-frontend.tsx">
|
|
|
|
|
<error line="60" column="4" severity="error" message="No overload matches this call.
|
|
|
|
|
Overload 1 of 2, '(props: BlockErrorBoundaryProps | Readonly<BlockErrorBoundaryProps>): BlockErrorBoundary', gave the following error.
|
|
|
|
@ -635,9 +636,6 @@
|
|
|
|
|
<file name="assets/js/data/cart/controls.js">
|
|
|
|
|
<error line="18" column="31" severity="error" message="Parameter 'preserveCartData' implicitly has an 'any' type." source="TS7006" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/utils/notices.ts">
|
|
|
|
|
<error line="12" column="52" severity="error" message="Property 'type' does not exist on type 'Notice'." source="TS2339" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/data/checkout/thunks.ts">
|
|
|
|
|
<error line="5" column="10" severity="error" message="Module '"@wordpress/notices"' has no exported member 'store'." source="TS2305" />
|
|
|
|
|
<error line="57" column="11" severity="error" message="Property 'createErrorNotice' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/actions")'." source="TS2339" />
|
|
|
|
@ -657,12 +655,24 @@
|
|
|
|
|
<file name="assets/js/previews/cart.ts">
|
|
|
|
|
<error line="75" column="4" severity="error" message="Property 'price_range' is missing in type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' but required in type 'CartItemPrices'." source="TS2741" />
|
|
|
|
|
<error line="141" column="4" severity="error" message="Property 'price_range' is missing in type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' but required in type 'CartItemPrices'." source="TS2741" />
|
|
|
|
|
<error line="180" column="4" severity="error" message="Property 'price_range' is missing in type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' but required in type 'ProductResponseItemPrices'." source="TS2741" />
|
|
|
|
|
<error line="215" column="4" severity="error" message="Property 'price_range' is missing in type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' but required in type 'ProductResponseItemPrices'." source="TS2741" />
|
|
|
|
|
<error line="252" column="4" severity="error" message="Property 'price_range' is missing in type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' but required in type 'ProductResponseItemPrices'." source="TS2741" />
|
|
|
|
|
<error line="290" column="4" severity="error" message="Property 'price_range' is missing in type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' but required in type 'ProductResponseItemPrices'." source="TS2741" />
|
|
|
|
|
<error line="327" column="4" severity="error" message="Property 'price_range' is missing in type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' but required in type 'ProductResponseItemPrices'." source="TS2741" />
|
|
|
|
|
<error line="365" column="4" severity="error" message="Property 'price_range' is missing in type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' but required in type 'ProductResponseItemPrices'." source="TS2741" />
|
|
|
|
|
<error line="191" column="5" severity="error" message="Type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' is not assignable to type 'ProductResponseItemPrices'.
|
|
|
|
|
Object literal may only specify known properties, and 'raw_prices' does not exist in type 'ProductResponseItemPrices'." source="TS2322" />
|
|
|
|
|
<error line="209" column="4" severity="error" message="Type 'number' is not assignable to type 'string'." source="TS2322" />
|
|
|
|
|
<error line="226" column="5" severity="error" message="Type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' is not assignable to type 'ProductResponseItemPrices'.
|
|
|
|
|
Object literal may only specify known properties, and 'raw_prices' does not exist in type 'ProductResponseItemPrices'." source="TS2322" />
|
|
|
|
|
<error line="245" column="4" severity="error" message="Type 'number' is not assignable to type 'string'." source="TS2322" />
|
|
|
|
|
<error line="263" column="5" severity="error" message="Type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' is not assignable to type 'ProductResponseItemPrices'.
|
|
|
|
|
Object literal may only specify known properties, and 'raw_prices' does not exist in type 'ProductResponseItemPrices'." source="TS2322" />
|
|
|
|
|
<error line="283" column="4" severity="error" message="Type 'number' is not assignable to type 'string'." source="TS2322" />
|
|
|
|
|
<error line="301" column="5" severity="error" message="Type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' is not assignable to type 'ProductResponseItemPrices'.
|
|
|
|
|
Object literal may only specify known properties, and 'raw_prices' does not exist in type 'ProductResponseItemPrices'." source="TS2322" />
|
|
|
|
|
<error line="320" column="4" severity="error" message="Type 'number' is not assignable to type 'string'." source="TS2322" />
|
|
|
|
|
<error line="338" column="5" severity="error" message="Type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' is not assignable to type 'ProductResponseItemPrices'.
|
|
|
|
|
Object literal may only specify known properties, and 'raw_prices' does not exist in type 'ProductResponseItemPrices'." source="TS2322" />
|
|
|
|
|
<error line="358" column="4" severity="error" message="Type 'number' is not assignable to type 'string'." source="TS2322" />
|
|
|
|
|
<error line="376" column="5" severity="error" message="Type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; raw_prices: { ...; }; }' is not assignable to type 'ProductResponseItemPrices'.
|
|
|
|
|
Object literal may only specify known properties, and 'raw_prices' does not exist in type 'ProductResponseItemPrices'." source="TS2322" />
|
|
|
|
|
<error line="394" column="4" severity="error" message="Type 'number' is not assignable to type 'string'." source="TS2322" />
|
|
|
|
|
<error line="411" column="5" severity="error" message="Type '{ currency_code: "USD"; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; total: string; total_tax: string; tax_lines: { ...; }[]; }' is not assignable to type 'CartResponseFeeItemTotals'.
|
|
|
|
|
Object literal may only specify known properties, and 'tax_lines' does not exist in type 'CartResponseFeeItemTotals'." source="TS2322" />
|
|
|
|
|
</file>
|
|
|
|
@ -721,6 +731,10 @@
|
|
|
|
|
Type 'Object' is not assignable to type 'AnyAction | Generator<any, any, unknown>'.
|
|
|
|
|
The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?" source="TS2322" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="packages/checkout/components/store-notices-container/index.tsx">
|
|
|
|
|
<error line="5" column="24" severity="error" message="Could not find a declaration file for module 'wordpress-components'. '/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/wordpress-components/build/index.js' implicitly has an 'any' type.
|
|
|
|
|
If the '@wordpress/components' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordpress__components'" source="TS7016" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="packages/checkout/filter-registry/index.ts">
|
|
|
|
|
<error line="36" column="37" severity="error" message="Cannot find name 'T'." source="TS2304" />
|
|
|
|
|
</file>
|
|
|
|
@ -773,16 +787,6 @@
|
|
|
|
|
<error line="26" column="13" severity="error" message="Generic type 'Array<T>' requires 1 type argument(s)." source="TS2314" />
|
|
|
|
|
<error line="75" column="24" severity="error" message="Argument of type 'null' is not assignable to parameter of type 'Element'." source="TS2345" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="node_modules/@types/wordpress__block-editor/index.d.ts">
|
|
|
|
|
<error line="21" column="14" severity="error" message="Cannot redeclare block-scoped variable 'store'." source="TS2451" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/utils/global-style.js">
|
|
|
|
|
<error line="5" column="10" severity="error" message="Module '"@wordpress/block-editor"' has no exported member '__experimentalGetSpacingClassesAndStyles'." source="TS2305" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/utils/products.js">
|
|
|
|
|
<error line="5" column="12" severity="error" message="Generic type 'Array<T>' requires 1 type argument(s)." source="TS2314" />
|
|
|
|
|
<error line="20" column="12" severity="error" message="Generic type 'Array<T>' requires 1 type argument(s)." source="TS2314" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/base/hooks/use-spacing-props.ts">
|
|
|
|
|
<error line="5" column="10" severity="error" message="Module '"@wordpress/block-editor"' has no exported member '__experimentalGetSpacingClassesAndStyles'." source="TS2305" />
|
|
|
|
|
</file>
|
|
|
|
@ -1033,26 +1037,26 @@
|
|
|
|
|
<error line="128" column="35" severity="error" message="Parameter 'response' implicitly has an 'any' type." source="TS7006" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/base/context/providers/cart-checkout/checkout-processor.js">
|
|
|
|
|
<error line="176" column="7" severity="error" message="Variable 'unsubscribeProcessing' implicitly has type 'any' in some locations where its type cannot be determined." source="TS7034" />
|
|
|
|
|
<error line="185" column="5" severity="error" message="Variable 'unsubscribeProcessing' implicitly has an 'any' type." source="TS7005" />
|
|
|
|
|
<error line="231" column="9" severity="error" message="Property 'shipping_address' does not exist on type '{ extensions: { [x: string]: Record<string, unknown>; }; payment_method: string | undefined; payment_data: { key: string; value: unknown; }[]; billing_address: BillingAddress; customer_note: string; create_account: boolean; } | { ...; }'.
|
|
|
|
|
<error line="172" column="7" severity="error" message="Variable 'unsubscribeProcessing' implicitly has type 'any' in some locations where its type cannot be determined." source="TS7034" />
|
|
|
|
|
<error line="181" column="5" severity="error" message="Variable 'unsubscribeProcessing' implicitly has an 'any' type." source="TS7005" />
|
|
|
|
|
<error line="227" column="9" severity="error" message="Property 'shipping_address' does not exist on type '{ extensions: { [x: string]: Record<string, unknown>; }; payment_method: string | undefined; payment_data: { key: string; value: unknown; }[]; billing_address: BillingAddress; customer_note: string; create_account: boolean; } | { ...; }'.
|
|
|
|
|
Property 'shipping_address' does not exist on type '{ extensions: { [x: string]: Record<string, unknown>; }; payment_method: string | undefined; payment_data: { key: string; value: unknown; }[]; billing_address: BillingAddress; customer_note: string; create_account: boolean; }'." source="TS2339" />
|
|
|
|
|
<error line="260" column="35" severity="error" message="Parameter 'response' implicitly has an 'any' type." source="TS7006" />
|
|
|
|
|
<error line="270" column="9" severity="error" message="Argument of type '{ id: string; context: string; __unstableHTML: boolean; }' is not assignable to parameter of type 'Partial<Options>'.
|
|
|
|
|
<error line="256" column="35" severity="error" message="Parameter 'response' implicitly has an 'any' type." source="TS7006" />
|
|
|
|
|
<error line="266" column="9" severity="error" message="Argument of type '{ id: string; context: string; __unstableHTML: boolean; }' is not assignable to parameter of type 'Partial<Options>'.
|
|
|
|
|
Object literal may only specify known properties, and '__unstableHTML' does not exist in type 'Partial<Options>'." source="TS2345" />
|
|
|
|
|
<error line="274" column="10" severity="error" message="Parameter 'additionalError' implicitly has an 'any' type." source="TS7006" />
|
|
|
|
|
<error line="278" column="10" severity="error" message="Argument of type '{ id: any; context: string; __unstableHTML: boolean; }' is not assignable to parameter of type 'Partial<Options>'.
|
|
|
|
|
<error line="270" column="10" severity="error" message="Parameter 'additionalError' implicitly has an 'any' type." source="TS7006" />
|
|
|
|
|
<error line="274" column="10" severity="error" message="Argument of type '{ id: any; context: string; __unstableHTML: boolean; }' is not assignable to parameter of type 'Partial<Options>'.
|
|
|
|
|
Object literal may only specify known properties, and '__unstableHTML' does not exist in type 'Partial<Options>'." source="TS2345" />
|
|
|
|
|
<error line="301" column="8" severity="error" message="Argument of type '{ id: string; context: string; __unstableHTML: boolean; }' is not assignable to parameter of type 'Partial<Options>'.
|
|
|
|
|
<error line="297" column="8" severity="error" message="Argument of type '{ id: string; context: string; __unstableHTML: boolean; }' is not assignable to parameter of type 'Partial<Options>'.
|
|
|
|
|
Object literal may only specify known properties, and '__unstableHTML' does not exist in type 'Partial<Options>'." source="TS2345" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/base/context/providers/cart-checkout/checkout-provider.js">
|
|
|
|
|
<error line="4" column="28" severity="error" message="Could not find a declaration file for module '@wordpress/plugins'. '/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@wordpress/plugins/build/index.js' implicitly has an 'any' type.
|
|
|
|
|
Try `npm i --save-dev @types/wordpress__plugins` if it exists or add a new declaration (.d.ts) file containing `declare module '@wordpress/plugins';`" source="TS7016" />
|
|
|
|
|
<error line="29" column="27" severity="error" message="Type 'string | undefined' is not assignable to type 'string'.
|
|
|
|
|
<error line="30" column="27" severity="error" message="Type 'string | undefined' is not assignable to type 'string'.
|
|
|
|
|
Type 'undefined' is not assignable to type 'string'." source="TS2322" />
|
|
|
|
|
<error line="30" column="4" severity="error" message="Type 'Element' is missing the following properties from type 'ReactChildren': map, forEach, count, only, toArray" source="TS2739" />
|
|
|
|
|
<error line="36" column="7" severity="error" message="No overload matches this call.
|
|
|
|
|
<error line="31" column="4" severity="error" message="Type 'Element' is missing the following properties from type 'ReactChildren': map, forEach, count, only, toArray" source="TS2739" />
|
|
|
|
|
<error line="38" column="8" severity="error" message="No overload matches this call.
|
|
|
|
|
Overload 1 of 2, '(props: BlockErrorBoundaryProps | Readonly<BlockErrorBoundaryProps>): BlockErrorBoundary', gave the following error.
|
|
|
|
|
Type '(() => null) | null' is not assignable to type '(props: RenderErrorProps) => ReactNode'.
|
|
|
|
|
Type 'null' is not assignable to type '(props: RenderErrorProps) => ReactNode'.
|
|
|
|
@ -1064,18 +1068,10 @@
|
|
|
|
|
<error line="20" column="4" severity="error" message="Type 'Object | undefined' is not assignable to type 'Object'.
|
|
|
|
|
Type 'undefined' is not assignable to type 'Object'." source="TS2322" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/base/context/providers/store-notices/components/store-notices-container.js">
|
|
|
|
|
<error line="6" column="24" severity="error" message="Could not find a declaration file for module 'wordpress-components'. '/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/wordpress-components/build/index.js' implicitly has an 'any' type.
|
|
|
|
|
If the '@wordpress/components' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordpress__components'" source="TS7016" />
|
|
|
|
|
<error line="30" column="2" severity="error" message="Binding element 'className' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
|
<error line="32" column="2" severity="error" message="Binding element 'additionalNotices' implicitly has an 'any[]' type." source="TS7031" />
|
|
|
|
|
<error line="46" column="33" severity="error" message="Property 'type' does not exist on type 'Notice'." source="TS2339" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/base/context/providers/store-snackbar-notices/components/snackbar-notices-container.js">
|
|
|
|
|
<error line="5" column="30" severity="error" message="Could not find a declaration file for module 'wordpress-components'. '/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/wordpress-components/build/index.js' implicitly has an 'any' type.
|
|
|
|
|
If the '@wordpress/components' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordpress__components'" source="TS7016" />
|
|
|
|
|
<error line="18" column="2" severity="error" message="Binding element 'className' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
|
<error line="36" column="24" severity="error" message="Property 'type' does not exist on type 'Notice'." source="TS2339" />
|
|
|
|
|
<error line="42" column="6" severity="error" message="Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
|
|
|
|
|
No index signature with a parameter of type 'string' was found on type '{}'." source="TS7053" />
|
|
|
|
|
<error line="53" column="17" severity="error" message="Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
|
|
|
|
@ -1085,7 +1081,10 @@
|
|
|
|
|
<error line="10" column="56" severity="error" message="Namespace '"/home/runner/work/woocommerce-blocks/woocommerce-blocks/assets/js/types/type-defs/contexts"' has no exported member 'ContainerWidthContext'." source="TS2694" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/base/context/providers/index.js">
|
|
|
|
|
<error line="6" column="1" severity="error" message="Module './cart-checkout' has already exported a member named 'React'. Consider explicitly re-exporting to resolve the ambiguity." source="TS2308" />
|
|
|
|
|
<error line="5" column="1" severity="error" message="Module './cart-checkout' has already exported a member named 'React'. Consider explicitly re-exporting to resolve the ambiguity." source="TS2308" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/base/context/hooks/use-checkout-extension-data.ts">
|
|
|
|
|
<error line="12" column="15" severity="error" message="Module '"../../../data/checkout/types"' declares 'CheckoutState' locally, but it is not exported." source="TS2459" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/shared/hocs/with-product-data-context.js">
|
|
|
|
|
<error line="16" column="10" severity="error" message="Property 'productId' does not exist on type 'Object'." source="TS2339" />
|
|
|
|
@ -1103,28 +1102,7 @@
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/price/block.js">
|
|
|
|
|
<error line="52" column="18" severity="error" message="Type 'string | undefined' is not assignable to type '"center" | "left" | "right" | undefined' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target." source="TS2412" />
|
|
|
|
|
<error line="57" column="49" severity="error" message="Argument of type '{ currency_code: string; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; price_range: null; }' is not assignable to parameter of type 'CurrencyResponse | Record<string, never> | CartShippingPackageShippingRate | undefined'.
|
|
|
|
|
Type '{ currency_code: string; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; price_range: null; }' is not assignable to type 'Record<string, never>'.
|
|
|
|
|
Property 'currency_code' is incompatible with index signature.
|
|
|
|
|
Type 'string' is not assignable to type 'never'." source="TS2345" />
|
|
|
|
|
<error line="66" column="4" severity="error" message="Type 'string | undefined' is not assignable to type '"center" | "left" | "right" | undefined' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target." source="TS2412" />
|
|
|
|
|
<error line="74" column="36" severity="error" message="Property 'min_amount' does not exist on type 'never'." source="TS2339" />
|
|
|
|
|
<error line="75" column="36" severity="error" message="Property 'max_amount' does not exist on type 'never'." source="TS2339" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/image/block.js">
|
|
|
|
|
<error line="138" column="19" severity="error" message="Binding element 'image' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
|
<error line="138" column="26" severity="error" message="Binding element 'loaded' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
|
<error line="138" column="34" severity="error" message="Binding element 'showFullSize' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
|
<error line="138" column="48" severity="error" message="Binding element 'fallbackAlt' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/rating/block.tsx">
|
|
|
|
|
<error line="55" column="35" severity="error" message="Argument of type '{ id: number; name: string; parent: number; type: string; variation: string; permalink: string; sku: string; short_description: string; description: string; on_sale: boolean; prices: { currency_code: string; ... 9 more ...; price_range: null; }; ... 14 more ...; add_to_cart: { ...; }; }' is not assignable to parameter of type 'Omit<ProductResponseItem, "average_rating"> & { average_rating: string; }'.
|
|
|
|
|
Type '{ id: number; name: string; parent: number; type: string; variation: string; permalink: string; sku: string; short_description: string; description: string; on_sale: boolean; prices: { currency_code: string; ... 9 more ...; price_range: null; }; ... 14 more ...; add_to_cart: { ...; }; }' is not assignable to type 'Omit<ProductResponseItem, "average_rating">'.
|
|
|
|
|
Types of property 'prices' are incompatible.
|
|
|
|
|
Property 'raw_prices' is missing in type '{ currency_code: string; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; price_range: null; }' but required in type 'ProductResponseItemPrices'." source="TS2345" />
|
|
|
|
|
<error line="74" column="34" severity="error" message="Argument of type '{ id: number; name: string; parent: number; type: string; variation: string; permalink: string; sku: string; short_description: string; description: string; on_sale: boolean; prices: { currency_code: string; ... 9 more ...; price_range: null; }; ... 14 more ...; add_to_cart: { ...; }; }' is not assignable to parameter of type 'ProductResponseItem'.
|
|
|
|
|
Types of property 'prices' are incompatible.
|
|
|
|
|
Property 'raw_prices' is missing in type '{ currency_code: string; currency_symbol: string; currency_minor_unit: number; currency_decimal_separator: string; currency_thousand_separator: string; currency_prefix: string; currency_suffix: string; price: string; regular_price: string; sale_price: string; price_range: null; }' but required in type 'ProductResponseItemPrices'." source="TS2345" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/button/block.js">
|
|
|
|
|
<error line="100" column="3" severity="error" message="Property 'id' does not exist on type 'Object | undefined'." source="TS2339" />
|
|
|
|
@ -1347,33 +1325,6 @@
|
|
|
|
|
<error line="20" column="3" severity="error" message="Type '{ textAlign: { type: string; }; productId: { type: string; default: number; }; isDescendentOfQueryLoop: { type: string; default: boolean; }; }' is not assignable to type '{ productId: { type: string; default: number; }; isDescendentOfQueryLoop: { type: string; default: boolean; }; }'.
|
|
|
|
|
Object literal may only specify known properties, and 'textAlign' does not exist in type '{ productId: { type: string; default: number; }; isDescendentOfQueryLoop: { type: string; default: boolean; }; }'." source="TS2322" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/image/edit.js">
|
|
|
|
|
<error line="14" column="2" severity="error" message="Module '"@wordpress/components"' has no exported member '__experimentalToggleGroupControl'." source="TS2305" />
|
|
|
|
|
<error line="16" column="2" severity="error" message="Module '"@wordpress/components"' has no exported member '__experimentalToggleGroupControlOption'." source="TS2305" />
|
|
|
|
|
<error line="24" column="18" severity="error" message="Binding element 'attributes' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
|
<error line="24" column="30" severity="error" message="Binding element 'setAttributes' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
|
<error line="24" column="45" severity="error" message="Binding element 'context' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
|
<error line="94" column="21" severity="error" message="Parameter 'value' implicitly has an 'any' type." source="TS7006" />
|
|
|
|
|
<error line="146" column="21" severity="error" message="Parameter 'value' implicitly has an 'any' type." source="TS7006" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/image/index.js">
|
|
|
|
|
<error line="46" column="1" severity="error" message="No overload matches this call.
|
|
|
|
|
Overload 1 of 2, '(metadata: BlockConfiguration<{}>, settings?: Partial<BlockConfiguration<{}>> | undefined): Block<{}> | undefined', gave the following error.
|
|
|
|
|
Argument of type 'string' is not assignable to parameter of type 'BlockConfiguration<{}>'.
|
|
|
|
|
Type 'string' is not assignable to type 'Pick<Block<{}>, "title" | "category" | "attributes">'.
|
|
|
|
|
Overload 2 of 2, '(name: string, settings: BlockConfiguration<{}>): Block<{}> | undefined', gave the following error.
|
|
|
|
|
Argument of type '{ apiVersion: number; name: string; title: string; icon: { src: JSX.Element; }; keywords: string[]; description: string; usesContext: string[]; ancestor: string[]; textdomain: string; attributes: { ...; }; ... 16 more ...; merge?: ((attributes: {}, attributesToMerge: {}) => Partial<...>) | undefined; }' is not assignable to parameter of type 'BlockConfiguration<{}>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
|
|
|
|
|
Type '{ apiVersion: number; name: string; title: string; icon: { src: JSX.Element; }; keywords: string[]; description: string; usesContext: string[]; ancestor: string[]; textdomain: string; attributes: { ...; }; ... 16 more ...; merge?: ((attributes: {}, attributesToMerge: {}) => Partial<...>) | undefined; }' is not assignable to type 'Partial<Omit<Block<{}>, "icon">>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
|
|
|
|
|
Types of property 'edit' are incompatible.
|
|
|
|
|
Type '({ attributes, setAttributes, context }: { attributes: any; setAttributes: any; context: any; }) => Element' is not assignable to type 'ComponentType<BlockEditProps<{}>> | undefined'.
|
|
|
|
|
Type '({ attributes, setAttributes, context }: { attributes: any; setAttributes: any; context: any; }) => Element' is not assignable to type 'FunctionComponent<BlockEditProps<{}>>'.
|
|
|
|
|
Types of parameters '__0' and 'props' are incompatible.
|
|
|
|
|
Property 'context' is missing in type 'BlockEditProps<{}> & { children?: ReactNode; }' but required in type '{ attributes: any; setAttributes: any; context: any; }'." source="TS2769" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/rating/index.ts">
|
|
|
|
|
<error line="25" column="2" severity="error" message="Type '{ apiVersion: number; title: string; description: string; usesContext: string[]; ancestor: string[]; icon: { src: JSX.Element; }; attributes: { productId: { type: string; default: number; }; isDescendentOfQueryLoop: { ...; }; }; supports: { ...; }; edit: (props: any) => JSX.Element; }' is not assignable to type 'BlockConfiguration<{}>'.
|
|
|
|
|
Object literal may only specify known properties, and 'ancestor' does not exist in type 'BlockConfiguration<{}>'." source="TS2322" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/button/edit.js">
|
|
|
|
|
<error line="13" column="18" severity="error" message="Binding element 'attributes' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
|
<error line="13" column="30" severity="error" message="Binding element 'setAttributes' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
@ -1393,13 +1344,6 @@
|
|
|
|
|
Types of parameters '__0' and 'props' are incompatible.
|
|
|
|
|
Property 'context' is missing in type 'BlockEditProps<{}> & { children?: ReactNode; }' but required in type '{ attributes: any; setAttributes: any; context: any; }'." source="TS2769" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/sale-badge/index.ts">
|
|
|
|
|
<error line="30" column="2" severity="error" message="Type '{ title: string; description: string; icon: { src: JSX.Element; }; apiVersion: number; supports: { __experimentalSelector?: string; spacing?: { padding: boolean; __experimentalSkipSerialization: boolean; }; color?: { ...; }; typography?: { ...; }; __experimentalBorder?: { ...; }; html: boolean; }; ... 21 more ...; m...' is not assignable to type 'BlockConfiguration<{}>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
|
|
|
|
|
Object literal may only specify known properties, and 'ancestor' does not exist in type 'BlockConfiguration<{}>'." source="TS2375" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/editor-components/edit-product-link/index.js">
|
|
|
|
|
<error line="18" column="40" severity="error" message="Property 'productId' does not exist on type 'Object'." source="TS2339" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/sku/index.ts">
|
|
|
|
|
<error line="25" column="2" severity="error" message="Type '{ apiVersion: number; title: string; description: string; icon: { src: JSX.Element; }; usesContext: string[]; ancestor: string[]; attributes: Record<string, Record<string, unknown>>; edit: (props: any) => JSX.Element; }' is not assignable to type 'BlockConfiguration<{}>'.
|
|
|
|
|
Object literal may only specify known properties, and 'ancestor' does not exist in type 'BlockConfiguration<{}>'." source="TS2322" />
|
|
|
|
@ -1417,25 +1361,19 @@
|
|
|
|
|
Type 'Readonly<{}>' is not assignable to type 'Record<string, unknown> & { className: string; }'.
|
|
|
|
|
Property 'className' is missing in type 'Readonly<{}>' but required in type '{ className: string; }'." source="TS2322" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/add-to-cart/edit.js">
|
|
|
|
|
<error line="25" column="18" severity="error" message="Binding element 'attributes' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
|
<error line="25" column="30" severity="error" message="Binding element 'setAttributes' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
|
<error line="36" column="21" severity="error" message="Type '{ productId: number; }' is not assignable to type 'IntrinsicAttributes & Object'.
|
|
|
|
|
Property 'productId' does not exist on type 'IntrinsicAttributes & Object'." source="TS2322" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/add-to-cart/product-types/variable/variation-attributes/test/index.js">
|
|
|
|
|
<error line="195" column="38" severity="error" message="Argument of type 'null' is not assignable to parameter of type 'Object'." source="TS2345" />
|
|
|
|
|
<error line="252" column="56" severity="error" message="Argument of type 'null' is not assignable to parameter of type 'Object'." source="TS2345" />
|
|
|
|
|
<error line="475" column="34" severity="error" message="Argument of type 'null' is not assignable to parameter of type 'Object | undefined'." source="TS2345" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/atomic/blocks/product-elements/title/test/block.test.js">
|
|
|
|
|
<error line="22" column="6" severity="error" message="Property 'isLoading' is missing in type '{ children: Element; product: { id: number; name: string; permalink: string; }; }' but required in type '{ product: any; children: Object; isLoading: boolean; }'." source="TS2741" />
|
|
|
|
|
<error line="22" column="33" severity="error" message="Type '{ id: number; name: string; permalink: string; }' is missing the following properties from type 'ProductResponseItem': parent, type, variation, sku, and 19 more." source="TS2740" />
|
|
|
|
|
<error line="23" column="7" severity="error" message="Type '{ showProductLink: false; }' is missing the following properties from type 'Attributes': headingLevel, align" source="TS2739" />
|
|
|
|
|
<error line="37" column="6" severity="error" message="Property 'isLoading' is missing in type '{ children: Element; product: { id: number; name: string; permalink: string; }; }' but required in type '{ product: any; children: Object; isLoading: boolean; }'." source="TS2741" />
|
|
|
|
|
<error line="37" column="33" severity="error" message="Type '{ id: number; name: string; permalink: string; }' is not assignable to type 'ProductResponseItem'." source="TS2322" />
|
|
|
|
|
<error line="38" column="7" severity="error" message="Type '{ showProductLink: true; }' is missing the following properties from type 'Attributes': headingLevel, align" source="TS2739" />
|
|
|
|
|
<error line="45" column="12" severity="error" message="Object is possibly 'null'." source="TS2531" />
|
|
|
|
|
<error line="46" column="12" severity="error" message="Object is possibly 'null'." source="TS2531" />
|
|
|
|
|
<error line="51" column="6" severity="error" message="Property 'isLoading' is missing in type '{ children: Element; product: { id: number; name: string; permalink: string; }; }' but required in type '{ product: any; children: Object; isLoading: boolean; }'." source="TS2741" />
|
|
|
|
|
<error line="51" column="33" severity="error" message="Type '{ id: number; name: string; permalink: string; }' is not assignable to type 'ProductResponseItem'." source="TS2322" />
|
|
|
|
|
<error line="52" column="7" severity="error" message="Type '{ showProductLink: true; linkTarget: string; }' is missing the following properties from type 'Attributes': headingLevel, align" source="TS2739" />
|
|
|
|
|
<error line="59" column="12" severity="error" message="Object is possibly 'null'." source="TS2531" />
|
|
|
|
|
<error line="60" column="12" severity="error" message="Object is possibly 'null'." source="TS2531" />
|
|
|
|
@ -2199,26 +2137,22 @@
|
|
|
|
|
Type '{ icon: { src: Element; }; edit: ({ attributes, }: { attributes: { className: string; }; }) => Element; save: () => Element; }' is missing the following properties from type 'Pick<Block<{ className: string; }>, "title" | "category" | "attributes">': title, category, attributes" source="TS2769" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/cart/inner-blocks/cart-cross-sells-block/index.tsx">
|
|
|
|
|
<error line="13" column="20" severity="error" message="No overload matches this call.
|
|
|
|
|
<error line="12" column="1" severity="error" message="No overload matches this call.
|
|
|
|
|
Overload 1 of 2, '(metadata: BlockConfiguration<{}>, settings?: Partial<BlockConfiguration<{}>> | undefined): Block<{}> | undefined', gave the following error.
|
|
|
|
|
Argument of type '{ name: string; version: string; title: string; description: string; category: string; supports: { align: boolean; html: boolean; multiple: boolean; reusable: boolean; inserter: boolean; }; parent: string[]; textdomain: string; apiVersion: number; }' is not assignable to parameter of type 'BlockConfiguration<{}>'.
|
|
|
|
|
Property 'attributes' is missing in type '{ name: string; version: string; title: string; description: string; category: string; supports: { align: boolean; html: boolean; multiple: boolean; reusable: boolean; inserter: boolean; }; parent: string[]; textdomain: string; apiVersion: number; }' but required in type 'Pick<Block<{}>, "title" | "category" | "attributes">'.
|
|
|
|
|
Argument of type 'string' is not assignable to parameter of type 'BlockConfiguration<{}>'.
|
|
|
|
|
Type 'string' is not assignable to type 'Pick<Block<{}>, "title" | "category" | "attributes">'.
|
|
|
|
|
Overload 2 of 2, '(name: string, settings: BlockConfiguration<{}>): Block<{}> | undefined', gave the following error.
|
|
|
|
|
Argument of type '{ name: string; version: string; title: string; description: string; category: string; supports: { align: boolean; html: boolean; multiple: boolean; reusable: boolean; inserter: boolean; }; parent: string[]; textdomain: string; apiVersion: number; }' is not assignable to parameter of type 'string'." source="TS2769" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/cart/cart-cross-sells-product-list/cart-cross-sells-product.tsx">
|
|
|
|
|
<error line="51" column="8" severity="error" message="Type '{}' is missing the following properties from type 'BlockAttributes': productId, align, isDescendentOfQueryLoop" source="TS2739" />
|
|
|
|
|
Argument of type '{ icon: { src: JSX.Element; }; edit: () => JSX.Element; save: () => JSX.Element; }' is not assignable to parameter of type 'BlockConfiguration<{}>'.
|
|
|
|
|
Type '{ icon: { src: Element; }; edit: () => Element; save: () => Element; }' is missing the following properties from type 'Pick<Block<{}>, "title" | "category" | "attributes">': title, category, attributes" source="TS2769" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/cart/inner-blocks/cart-cross-sells-products/index.tsx">
|
|
|
|
|
<error line="13" column="20" severity="error" message="No overload matches this call.
|
|
|
|
|
<error line="12" column="1" severity="error" message="No overload matches this call.
|
|
|
|
|
Overload 1 of 2, '(metadata: BlockConfiguration<{ className?: string; columns: number; }>, settings?: Partial<BlockConfiguration<{ className?: string; columns: number; }>> | undefined): Block<...> | undefined', gave the following error.
|
|
|
|
|
Argument of type '{ name: string; version: string; title: string; description: string; category: string; supports: { align: boolean; html: boolean; multiple: boolean; reusable: boolean; inserter: boolean; lock: boolean; }; attributes: { ...; }; parent: string[]; textdomain: string; apiVersion: number; }' is not assignable to parameter of type 'BlockConfiguration<{ className?: string; columns: number; }>'.
|
|
|
|
|
Type '{ name: string; version: string; title: string; description: string; category: string; supports: { align: boolean; html: boolean; multiple: boolean; reusable: boolean; inserter: boolean; lock: boolean; }; attributes: { ...; }; parent: string[]; textdomain: string; apiVersion: number; }' is not assignable to type 'Partial<Omit<Block<{ className?: string; columns: number; }>, "icon">>'.
|
|
|
|
|
The types of 'attributes.columns' are incompatible between these types.
|
|
|
|
|
Type '{ type: string; default: number; }' is not assignable to type 'BlockAttribute<number>'.
|
|
|
|
|
Type '{ type: string; default: number; }' is missing the following properties from type 'Query<number>': source, selector, query
|
|
|
|
|
Argument of type 'string' is not assignable to parameter of type 'BlockConfiguration<{ className?: string; columns: number; }>'.
|
|
|
|
|
Type 'string' is not assignable to type 'Pick<Block<{ className?: string; columns: number; }>, "title" | "category" | "attributes">'.
|
|
|
|
|
Overload 2 of 2, '(name: string, settings: BlockConfiguration<{ className?: string; columns: number; }>): Block<{ className?: string; columns: number; }> | undefined', gave the following error.
|
|
|
|
|
Argument of type '{ name: string; version: string; title: string; description: string; category: string; supports: { align: boolean; html: boolean; multiple: boolean; reusable: boolean; inserter: boolean; lock: boolean; }; attributes: { ...; }; parent: string[]; textdomain: string; apiVersion: number; }' is not assignable to parameter of type 'string'." source="TS2769" />
|
|
|
|
|
Argument of type '{ icon: { src: JSX.Element; }; edit: ({ attributes, setAttributes }: Props) => JSX.Element; save: () => JSX.Element; }' is not assignable to parameter of type 'BlockConfiguration<{ className?: string; columns: number; }>'.
|
|
|
|
|
Type '{ icon: { src: Element; }; edit: ({ attributes, setAttributes }: Props) => Element; save: () => Element; }' is missing the following properties from type 'Pick<Block<{ className?: string; columns: number; }>, "title" | "category" | "attributes">': title, category, attributes" source="TS2769" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/cart/inner-blocks/cart-totals-block/index.tsx">
|
|
|
|
|
<error line="12" column="1" severity="error" message="No overload matches this call.
|
|
|
|
@ -2236,6 +2170,8 @@
|
|
|
|
|
<file name="assets/js/blocks/cart-checkout-shared/payment-methods/payment-method-error-boundary.js">
|
|
|
|
|
<error line="9" column="10" severity="error" message="Module '"@woocommerce/base-context/hooks"' has no exported member 'noticeContexts'." source="TS2305" />
|
|
|
|
|
<error line="14" column="35" severity="error" message="Parameter 'error' implicitly has an 'any' type." source="TS7006" />
|
|
|
|
|
<error line="50" column="6" severity="error" message="Type '{ id: string; content: string; isDismissible: boolean; status: string; }[]' is not assignable to type 'Notice[]'.
|
|
|
|
|
Type '{ id: string; content: string; isDismissible: boolean; status: string; }' is missing the following properties from type 'Notice': spokenMessage, __unstableHTML, type, speak, actions" source="TS2322" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/cart-checkout-shared/payment-methods/payment-method-options.js">
|
|
|
|
|
<error line="60" column="22" severity="error" message="No overload matches this call.
|
|
|
|
@ -2603,13 +2539,13 @@
|
|
|
|
|
<error line="15" column="68" severity="error" message="Expected 0 arguments, but got 1." source="TS2554" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/checkout/block.tsx">
|
|
|
|
|
<error line="95" column="4" severity="error" message="Type '{ allowCreateAccount: boolean; showCompanyField: boolean; requireCompanyField: boolean; showApartmentField: boolean; showPhoneField: boolean; requirePhoneField: boolean; }' is missing the following properties from type 'CheckoutBlockContextProps': showOrderNotes, showPolicyLinks, showReturnToCart, cartPageId, showRateAfterTaxName" source="TS2739" />
|
|
|
|
|
<error line="184" column="4" severity="error" message="No overload matches this call.
|
|
|
|
|
<error line="98" column="4" severity="error" message="Type '{ allowCreateAccount: boolean; showCompanyField: boolean; requireCompanyField: boolean; showApartmentField: boolean; showPhoneField: boolean; requirePhoneField: boolean; }' is missing the following properties from type 'CheckoutBlockContextProps': showOrderNotes, showPolicyLinks, showReturnToCart, cartPageId, showRateAfterTaxName" source="TS2739" />
|
|
|
|
|
<error line="187" column="4" severity="error" message="No overload matches this call.
|
|
|
|
|
Overload 1 of 2, '(props: BlockErrorBoundaryProps | Readonly<BlockErrorBoundaryProps>): BlockErrorBoundary', gave the following error.
|
|
|
|
|
Type 'unknown' is not assignable to type 'boolean'.
|
|
|
|
|
Overload 2 of 2, '(props: BlockErrorBoundaryProps, context: any): BlockErrorBoundary', gave the following error.
|
|
|
|
|
Type 'unknown' is not assignable to type 'boolean'." source="TS2769" />
|
|
|
|
|
<error line="207" column="33" severity="error" message="Argument of type '({ attributes, children, scrollToTop, }: { attributes: Attributes; children: React.ReactChildren; scrollToTop: (props: Record<string, unknown>) => void; }) => JSX.Element' is not assignable to parameter of type 'FunctionComponent<Record<string, unknown>>'.
|
|
|
|
|
<error line="210" column="33" severity="error" message="Argument of type '({ attributes, children, scrollToTop, }: { attributes: Attributes; children: React.ReactChildren; scrollToTop: (props: Record<string, unknown>) => void; }) => JSX.Element' is not assignable to parameter of type 'FunctionComponent<Record<string, unknown>>'.
|
|
|
|
|
Types of parameters '__0' and 'props' are incompatible.
|
|
|
|
|
Type 'PropsWithChildren<Record<string, unknown>>' is missing the following properties from type '{ attributes: Attributes; children: ReactChildren; scrollToTop: (props: Record<string, unknown>) => void; }': attributes, scrollToTop" source="TS2345" />
|
|
|
|
|
</file>
|
|
|
|
@ -3427,7 +3363,7 @@
|
|
|
|
|
<error line="14" column="2" severity="error" message="Module '"@wordpress/components"' has no exported member '__experimentalToolsPanel'." source="TS2305" />
|
|
|
|
|
<error line="16" column="2" severity="error" message="Module '"@wordpress/components"' has no exported member '__experimentalToolsPanelItem'." source="TS2305" />
|
|
|
|
|
<error line="51" column="6" severity="error" message="Property 'getBlockVariations' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__blocks/store/selectors")'." source="TS2339" />
|
|
|
|
|
<error line="130" column="6" severity="error" message="Type '{ label: string; onChange: (statusLabels: readonly Value[]) => void; suggestions: string[]; validateInput: (value: string) => boolean; value: string[]; __experimentalExpandOnFocus: boolean; }' is not assignable to type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
|
|
|
|
|
<error line="118" column="6" severity="error" message="Type '{ label: string; onChange: (statusLabels: readonly Value[]) => void; suggestions: string[]; validateInput: (value: string) => boolean; value: string[]; __experimentalExpandOnFocus: boolean; }' is not assignable to type 'IntrinsicAttributes & Props & { children?: ReactNode; }'.
|
|
|
|
|
Property 'label' does not exist on type 'IntrinsicAttributes & Props & { children?: ReactNode; }'." source="TS2322" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/product-search/block.js">
|
|
|
|
@ -3543,7 +3479,7 @@
|
|
|
|
|
Type '{ imageSizing: string; }' is not assignable to type 'string'." source="TS2345" />
|
|
|
|
|
<error line="188" column="40" severity="error" message="Variable 'newBlocks' implicitly has an 'any[]' type." source="TS7005" />
|
|
|
|
|
<error line="199" column="20" severity="error" message="Property 'renderAppender' does not exist on type '{ template: any; templateLock: boolean; allowedBlocks: string[]; }'." source="TS2339" />
|
|
|
|
|
<error line="222" column="11" severity="error" message="Property 'isLoading' is missing in type '{ children: Element; product: { id: number; name: string; variation: string; permalink: string; sku: string; short_description: string; description: string; price: string; price_html: string; ... 9 more ...; on_sale: boolean; }; }' but required in type '{ product: any; children: Object; isLoading: boolean; }'." source="TS2741" />
|
|
|
|
|
<error line="223" column="11" severity="error" message="Type '{ id: number; name: string; variation: string; permalink: string; sku: string; short_description: string; description: string; price: string; price_html: string; images: { id: number; src: string; thumbnail: string; name: string; alt: string; srcset: string; sizes: string; }[]; ... 8 more ...; on_sale: boolean; }' is missing the following properties from type 'ProductResponseItem': parent, type, tags, attributes, and 4 more." source="TS2740" />
|
|
|
|
|
<error line="225" column="12" severity="error" message="Type '{ template: any; templateLock: boolean; allowedBlocks: string[]; }' is not assignable to type 'Props'.
|
|
|
|
|
Types of property 'templateLock' are incompatible.
|
|
|
|
|
Type 'boolean' is not assignable to type 'EditorTemplateLock | undefined'." source="TS2322" />
|
|
|
|
@ -3735,14 +3671,11 @@
|
|
|
|
|
Type '{ type: string; default: boolean; }' is not assignable to type 'BlockAttribute<unknown>'." source="TS2769" />
|
|
|
|
|
<error line="68" column="11" severity="error" message="Type '{ constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }' is missing the following properties from type 'Omit<{ attributes: Object; debouncedSpeak: (arg0: any) => any; setAttributes: (arg0: any) => any; }, "speak" | "debouncedSpeak">': attributes, setAttributes" source="TS2739" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/single-product/block.js">
|
|
|
|
|
<error line="31" column="64" severity="error" message="Property 'id' does not exist on type 'Object'." source="TS2339" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/single-product/frontend.js">
|
|
|
|
|
<error line="18" column="20" severity="error" message="Parameter 'el' implicitly has an 'any' type." source="TS7006" />
|
|
|
|
|
<error line="25" column="2" severity="error" message="Type 'ComponentType<{ isLoading: boolean; product: Object; children: ReactChildren; }>' is not assignable to type 'FunctionComponent<{}>'.
|
|
|
|
|
Type 'ComponentClass<{ isLoading: boolean; product: Object; children: ReactChildren; }, any>' is not assignable to type 'FunctionComponent<{}>'.
|
|
|
|
|
Type 'ComponentClass<{ isLoading: boolean; product: Object; children: ReactChildren; }, any>' provides no match for the signature '(props: { children?: ReactNode; }, context?: any): ReactElement<any, any> | null'." source="TS2322" />
|
|
|
|
|
<error line="25" column="2" severity="error" message="Type 'ComponentType<BlockProps>' is not assignable to type 'FunctionComponent<{}>'.
|
|
|
|
|
Type 'ComponentClass<BlockProps, any>' is not assignable to type 'FunctionComponent<{}>'.
|
|
|
|
|
Type 'ComponentClass<BlockProps, any>' provides no match for the signature '(props: { children?: ReactNode; }, context?: any): ReactElement<any, any> | null'." source="TS2322" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/single-product/edit/api-error.js">
|
|
|
|
|
<error line="17" column="3" severity="error" message="Type 'string' is not assignable to type 'ErrorObject'." source="TS2322" />
|
|
|
|
@ -3754,22 +3687,18 @@
|
|
|
|
|
Property 'showVariations' does not exist on type 'IntrinsicAttributes & { selected: number[]; } & { children?: ReactNode; }'." source="TS2322" />
|
|
|
|
|
<error line="17" column="16" severity="error" message="Parameter 'value' implicitly has an 'any[]' type." source="TS7006" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/single-product/edit/layout-editor.js">
|
|
|
|
|
<error line="78" column="7" severity="error" message="Type '{}[][]' is not assignable to type 'readonly Template[]'.
|
|
|
|
|
<file name="assets/js/blocks/single-product/edit/layout-editor.tsx">
|
|
|
|
|
<error line="81" column="7" severity="error" message="Type '{}[][]' is not assignable to type 'readonly Template[]'.
|
|
|
|
|
Type '{}[]' is not assignable to type 'Template'.
|
|
|
|
|
Target requires 1 element(s) but source may have fewer." source="TS2322" />
|
|
|
|
|
<error line="81" column="7" severity="error" message="Type 'false' is not assignable to type 'ComponentType<{}> | undefined'." source="TS2322" />
|
|
|
|
|
<error line="84" column="7" severity="error" message="Type 'false' is not assignable to type 'ComponentType<{}> | undefined'." source="TS2322" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/single-product/edit/index.js">
|
|
|
|
|
<error line="46" column="10" severity="error" message="Property 'productId' does not exist on type 'Object'." source="TS2339" />
|
|
|
|
|
<error line="46" column="21" severity="error" message="Property 'isPreview' does not exist on type 'Object'." source="TS2339" />
|
|
|
|
|
<error line="65" column="5" severity="error" message="No overload matches this call.
|
|
|
|
|
<file name="assets/js/blocks/single-product/edit/index.tsx">
|
|
|
|
|
<error line="83" column="5" severity="error" message="No overload matches this call.
|
|
|
|
|
Overload 1 of 2, '(props: BlockErrorBoundaryProps | Readonly<BlockErrorBoundaryProps>): BlockErrorBoundary', gave the following error.
|
|
|
|
|
Property 'text' is missing in type '{ children: Element[]; header: string; }' but required in type 'Readonly<BlockErrorBoundaryProps>'.
|
|
|
|
|
Overload 2 of 2, '(props: BlockErrorBoundaryProps, context: any): BlockErrorBoundary', gave the following error.
|
|
|
|
|
Property 'text' is missing in type '{ children: Element[]; header: string; }' but required in type 'Readonly<BlockErrorBoundaryProps>'." source="TS2769" />
|
|
|
|
|
<error line="113" column="24" severity="error" message="Type '{ productId: any; }' is not assignable to type 'IntrinsicAttributes & Object'.
|
|
|
|
|
Property 'productId' does not exist on type 'IntrinsicAttributes & Object'." source="TS2322" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="assets/js/blocks/single-product/save.js">
|
|
|
|
|
<error line="7" column="18" severity="error" message="Binding element 'attributes' implicitly has an 'any' type." source="TS7031" />
|
|
|
|
@ -4191,6 +4120,18 @@
|
|
|
|
|
<error line="16" column="35" severity="error" message="Parameter 'options' implicitly has an 'any' type." source="TS7006" />
|
|
|
|
|
<error line="17" column="45" severity="error" message="Expected 1 arguments, but got 2." source="TS2554" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="packages/checkout/components/store-notices-container/test/index.tsx">
|
|
|
|
|
<error line="4" column="10" severity="error" message="Module '"@wordpress/notices"' has no exported member 'store'." source="TS2305" />
|
|
|
|
|
<error line="15" column="28" severity="error" message="Property 'createErrorNotice' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/actions")'." source="TS2339" />
|
|
|
|
|
<error line="23" column="29" severity="error" message="Property 'removeNotice' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/actions")'." source="TS2339" />
|
|
|
|
|
<error line="30" column="28" severity="error" message="Property 'getNotices' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/selectors")'." source="TS2339" />
|
|
|
|
|
<error line="36" column="28" severity="error" message="Property 'createErrorNotice' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/actions")'." source="TS2339" />
|
|
|
|
|
<error line="46" column="29" severity="error" message="Property 'removeNotice' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/actions")'." source="TS2339" />
|
|
|
|
|
<error line="53" column="28" severity="error" message="Property 'getNotices' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/selectors")'." source="TS2339" />
|
|
|
|
|
<error line="59" column="28" severity="error" message="Property 'createErrorNotice' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/actions")'." source="TS2339" />
|
|
|
|
|
<error line="70" column="29" severity="error" message="Property 'removeNotice' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/actions")'." source="TS2339" />
|
|
|
|
|
<error line="77" column="28" severity="error" message="Property 'getNotices' does not exist on type 'typeof import("/home/runner/work/woocommerce-blocks/woocommerce-blocks/node_modules/@types/wordpress__rich-text/store/selectors")'." source="TS2339" />
|
|
|
|
|
</file>
|
|
|
|
|
<file name="packages/checkout/components/text-input/test/validated-text-input.tsx">
|
|
|
|
|
<error line="92" column="9" severity="error" message="Property 'toBeInTheDocument' does not exist on type 'Matchers<void, HTMLElement | null>'." source="TS2339" />
|
|
|
|
|
<error line="93" column="45" severity="error" message="Property 'toBeInTheDocument' does not exist on type 'JestMatchers<HTMLElement>'." source="TS2339" />
|
|
|
|
|