From 7d0d56bcbb9ba3ca9e2b5728b69d6b62b76e6ab5 Mon Sep 17 00:00:00 2001 From: Triforce Date: Mon, 4 Jun 2018 01:09:34 -0400 Subject: [PATCH] Completed type declarations using interfaces, Collection interface was derived from the rest api doc --- types/shopify-buy/index.d.ts | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/types/shopify-buy/index.d.ts b/types/shopify-buy/index.d.ts index 975b58e233..083a951e33 100644 --- a/types/shopify-buy/index.d.ts +++ b/types/shopify-buy/index.d.ts @@ -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 { /**