You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace Unicode curly quotes (U+2018/U+2019) with straight ASCII quotes
on all type literal lines, which caused ESLint parse errors.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Creates or updates a cart [metafield](https://shopify.dev/docs/apps/build/custom-data/metafields). Pass this to `applyMetafieldChange()` to set a metafield value. If a metafield with the provided key and namespace doesn’t already exist, then it gets created.
488
+
* Creates or updates a cart [metafield](https://shopify.dev/docs/apps/build/custom-data/metafields). Pass this to `applyMetafieldChange()` to set a metafield value. If a metafield with the provided key and namespace doesn't already exist, then it gets created.
489
489
*/
490
490
exportinterfaceMetafieldUpdateCartChange{
491
491
/**
492
492
* Identifies this as a cart metafield creation or update. Set this when creating a change to set a metafield value.
493
493
*/
494
-
type: ‘updateCartMetafield’;
494
+
type: 'updateCartMetafield';
495
495
496
496
/**
497
497
* The metafield data to set on the cart. If a metafield with this key and namespace already exists, then its value is replaced.
* See the [metafield types documentation](https://shopify.dev/docs/apps/build/custom-data/metafields/list-of-data-types) for a list of supported types.
* The input for `applyMetafieldChange()`. Use the `type` property to specify the operation.
519
519
*
520
-
* - `MetafieldRemoveCartChange` (`type: ‘removeCartMetafield’`): Removes an existing cart [metafield](https://shopify.dev/docs/apps/build/custom-data/metafields).
521
-
* - `MetafieldUpdateCartChange` (`type: ‘updateCartMetafield’`): Creates or updates a cart metafield.
522
-
* - `MetafieldRemoveChange` (`type: ‘removeMetafield’`) - Removes an existing metafield.
523
-
* - `MetafieldUpdateChange` (`type: ‘updateMetafield’`) - Creates or updates a metafield.
520
+
* - `MetafieldRemoveCartChange` (`type: 'removeCartMetafield'`): Removes an existing cart [metafield](https://shopify.dev/docs/apps/build/custom-data/metafields).
521
+
* - `MetafieldUpdateCartChange` (`type: 'updateCartMetafield'`): Creates or updates a cart metafield.
522
+
* - `MetafieldRemoveChange` (`type: 'removeMetafield'`) - Removes an existing metafield.
523
+
* - `MetafieldUpdateChange` (`type: 'updateMetafield'`) - Creates or updates a metafield.
524
524
*/
525
525
exporttypeMetafieldChange=
526
526
|MetafieldRemoveChange
@@ -529,27 +529,27 @@ export type MetafieldChange =
529
529
|MetafieldUpdateCartChange;
530
530
531
531
/**
532
-
* The result of a successful metafield change. The `type` property is `’success’`.
532
+
* The result of a successful metafield change. The `type` property is `'success'`.
533
533
*/
534
534
exportinterfaceMetafieldChangeResultSuccess{
535
535
/**
536
536
* Indicates that the metafield change was applied successfully.
537
537
*/
538
-
type: ‘success’;
538
+
type: 'success';
539
539
}
540
540
541
541
/**
542
542
* The result of a failed metafield change. Check the `message` property for details about what went wrong.
543
543
*/
544
544
exportinterfaceMetafieldChangeResultError{
545
545
/**
546
-
* Indicates that the metafield change couldn’t be applied. Check the `message` property for details.
546
+
* Indicates that the metafield change couldn't be applied. Check the `message` property for details.
547
547
*/
548
-
type: ‘error’;
548
+
type: 'error';
549
549
550
550
/**
551
551
* A message that explains the error. This message is useful for debugging.
552
-
* It isn’t localized and shouldn’t be displayed to the buyer.
552
+
* It isn't localized and shouldn't be displayed to the buyer.
553
553
*/
554
554
message: string;
555
555
}
@@ -562,35 +562,35 @@ export type MetafieldChangeResult =
562
562
|MetafieldChangeResultError;
563
563
564
564
/**
565
-
* Updates the buyer’s shipping address on the checkout. Pass this to `applyShippingAddressChange()` to modify specific address fields without replacing the entire address.
565
+
* Updates the buyer's shipping address on the checkout. Pass this to `applyShippingAddressChange()` to modify specific address fields without replacing the entire address.
566
566
*/
567
567
exportinterfaceShippingAddressUpdateChange{
568
568
/**
569
569
* Identifies this as a shipping address update. This is the only supported change type for `applyShippingAddressChange()`.
570
570
*/
571
-
type: ‘updateShippingAddress’;
571
+
type: 'updateShippingAddress';
572
572
573
573
/**
574
574
* Fields to update in the shipping address. You only need to provide
575
-
* values for the fields you want to update. Any fields you don’t list
575
+
* values for the fields you want to update. Any fields you don't list
576
576
* keep their current values.
577
577
*/
578
578
address: Partial<ShippingAddress>;
579
579
}
580
580
581
581
/**
582
-
* The input for `applyShippingAddressChange()`. Currently only supports `ShippingAddressUpdateChange` (with `type: ‘updateShippingAddress’`).
582
+
* The input for `applyShippingAddressChange()`. Currently only supports `ShippingAddressUpdateChange` (with `type: 'updateShippingAddress'`).
* The `MailingAddress` field that caused the error, such as `’countryCode’` or `’zip’`. The value is `undefined` if the error isn’t specific to a single field.
607
+
* The `MailingAddress` field that caused the error, such as `'countryCode'` or `'zip'`. The value is `undefined` if the error isn't specific to a single field.
608
608
*/
609
609
field?: keyofMailingAddress;
610
610
611
611
/**
612
612
* A message that explains the error. This message is useful for debugging.
613
-
* It isn’t localized and shouldn’t be displayed to the buyer.
613
+
* It isn't localized and shouldn't be displayed to the buyer.
0 commit comments