Completed type declarations using interfaces, Collection interface was derived from the rest api doc

This commit is contained in:
Triforce
2018-06-04 01:09:34 -04:00
parent 85d3e66bf0
commit 7d0d56bcbb
+14 -4
View File
@@ -270,10 +270,20 @@ declare namespace ShopifyBuy {
value: any;
}
/*
* TODO this should be solved during TDD
* export interface Collection {}
*/
export interface Collection {
handle: string;
body_html: string;
image: Image;
id: string;
metafields: any[];
published: boolean;
published_at: string;
published_scope: string;
sort_order: string;
template_suffix: string;
title: string;
updated_at: string;
}
export interface Cart extends GraphModel {
/**