Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
feat(helpers): move interfaces to global types (temporarly)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciej Kucmus committed Nov 27, 2019
1 parent f1ac5b5 commit 464260e
Show file tree
Hide file tree
Showing 8 changed files with 65 additions and 1,812 deletions.
30 changes: 30 additions & 0 deletions packages/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,33 @@ declare var __FEATURE_SUSPENSE__: boolean;

// Externals
declare var axios: AxiosStatic;


// Ui interfaces
interface UiMediaGalleryItemUrl {
url: string
}
interface UiMediaGalleryItem {
small: UiMediaGalleryItemUrl
normal: UiMediaGalleryItemUrl
big: UiMediaGalleryItemUrl
}

interface UiProductOption {
label: string,
value: string,
[attribute: string]: string
}

interface UiProductProperty {
name: string
value: string | null
}

interface UiProductReview {
id: string,
author: string,
date: Date
message: string | null,
rating: number | null
}
Loading

0 comments on commit 464260e

Please sign in to comment.