-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a56494
commit 515a303
Showing
33 changed files
with
356 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
module.exports = { | ||
extends: [ | ||
'airbnb-base', | ||
'airbnb-typescript/base', | ||
], | ||
extends: ['airbnb-base', 'airbnb-typescript/base'], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
project: './tsconfig.json', | ||
}, | ||
plugins: [ | ||
'@typescript-eslint', | ||
], | ||
plugins: ['@typescript-eslint'], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export default interface Image { | ||
switchImage: CallableFunction | ||
getSizedImageUrl: (src: string, size: string) => string | ||
imageSize: (src: string) => string | null | ||
loadImage: (src: string) => void | ||
removeProtocol: (url: string) => string | ||
switchImage: CallableFunction; | ||
getSizedImageUrl: (src: string, size: string) => string; | ||
imageSize: (src: string) => string | null; | ||
loadImage: (src: string) => void; | ||
removeProtocol: (url: string) => string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import Product from '../Product'; | ||
|
||
export type Products = Product[] | ||
export type Products = Product[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import Image from '../Image'; | ||
|
||
export default interface Collection { | ||
id: number | ||
title: string | ||
handle: string | ||
description: string | ||
published_at: string | ||
updated_at: string | ||
image: Image | null | ||
products_count: number | ||
id: number; | ||
title: string; | ||
handle: string; | ||
description: string; | ||
published_at: string; | ||
updated_at: string; | ||
image: Image | null; | ||
products_count: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import DiscountApplication from './DiscountApplication'; | ||
|
||
export default interface DiscountAllocations { | ||
amount: number | ||
discount_application: DiscountApplication | ||
amount: number; | ||
discount_application: DiscountApplication; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
export default interface DiscountApplication { | ||
type: 'automatic' | 'discount_code' | 'manual' | 'script' | ||
key: string | ||
title: string | ||
description: string | null | ||
value: number | ||
created_at: string | ||
value_type: 'fixed_amount' | 'percentage' | ||
allocation_method: 'across' | 'each' | 'one' | ||
target_selection: 'all' | 'entitled' | 'explicit' | ||
target_type: 'line_item' | 'shipping_line' | ||
total_allocated_amount: number | ||
type: 'automatic' | 'discount_code' | 'manual' | 'script'; | ||
key: string; | ||
title: string; | ||
description: string | null; | ||
value: number; | ||
created_at: string; | ||
value_type: 'fixed_amount' | 'percentage'; | ||
allocation_method: 'across' | 'each' | 'one'; | ||
target_selection: 'all' | 'entitled' | 'explicit'; | ||
target_type: 'line_item' | 'shipping_line'; | ||
total_allocated_amount: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export default interface Image { | ||
id: number | ||
created_at: string | ||
src: string | ||
alt: string | null | ||
id: number; | ||
created_at: string; | ||
src: string; | ||
alt: string | null; | ||
} |
Oops, something went wrong.