Remove non-gmt scheduled sale properties from Product type (#35096)

This commit is contained in:
Matt Sherman 2022-10-17 16:50:18 -04:00 committed by GitHub
parent c6eab3b4b2
commit 9fc0935e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,4 @@
Significance: major
Type: update
Remove `Product` `date_on_sale_from` and `date_on_sale_to` properties. Use `date_on_sale_from_gmt` and `date_on_sale_to_gmt` instead.

View File

@ -59,9 +59,7 @@ export type Product< Status = ProductStatus, Type = ProductType > = Omit<
description: string; description: string;
short_description: string; short_description: string;
sku: string; sku: string;
date_on_sale_from: string | null;
date_on_sale_from_gmt: string | null; date_on_sale_from_gmt: string | null;
date_on_sale_to: string | null;
date_on_sale_to_gmt: string | null; date_on_sale_to_gmt: string | null;
virtual: boolean; virtual: boolean;
downloadable: boolean; downloadable: boolean;