File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
22declare module '@foxcomm/api-js' {
3-
43 declare type StringDict = { [ name : string ] : string } ;
54
6- type AbortablePromise = Promise & {
5+ declare type AbortablePromise = Promise & {
76 abort ( ) : void ;
8- }
7+ } ;
98
109 declare type AgentLike = AbortablePromise & {
1110 get ( url : string ) : AgentLike ;
@@ -15,13 +14,13 @@ declare module '@foxcomm/api-js' {
1514
1615 set ( headers : StringDict ) : AgentLike ;
1716 withCredentials ( ) : AgentLike ;
18- }
17+ } ;
1918
2019 declare type RequestOptions = {
2120 headers ?: StringDict ,
2221 credentials ?: string ,
2322 agent ?: AgentLike ;
24- }
23+ } ;
2524
2625 // @TODO : add subclasses
2726 declare class ApiClass {
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ export type Image = {
33 alt : string ,
44 src : string ,
55 title ?: string ,
6- }
6+ } ;
77
88export type Album = {
99 id : number ,
1010 name : string ,
1111 images : Array < Image > ,
1212 archivedAt ? : string ,
13- }
13+ } ;
Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ export type Currency = {|
55 currency : string ,
66 value : number
77 }
8- | }
8+ | } ;
99
1010export type String = { |
1111 t : 'string' ,
1212 v : string
13- | }
13+ | } ;
Original file line number Diff line number Diff line change @@ -5,4 +5,4 @@ export type Context = {|
55 lang : string ,
66 modality : string ,
77 }
8- | }
8+ | } ;
Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ export type VariantValue = {
99 name : string ,
1010 swatch : string ,
1111 skuCodes : Array < string > ,
12- }
12+ } ;
1313
1414export type Variant = {
1515 attributes : {
1616 name : String ,
1717 } ,
1818 values : Array < VariantValue > ,
19- }
19+ } ;
2020
2121export type Product = {
2222 id : number ,
@@ -28,4 +28,4 @@ export type Product = {
2828 description : String ,
2929 } ,
3030 variants : Array < Variant > ,
31- }
31+ } ;
Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ export type Sku = {
1111 salePrice : Currency ,
1212 retailPrice : Currency ,
1313 } ,
14- albums : Array < Album >
14+ albums : Array < Album > ,
1515} ;
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ export type Country = {
1010 uses_postal_code : boolean ,
1111 is_billable : boolean ,
1212 is_shippable : boolean ,
13- }
13+ } ;
Original file line number Diff line number Diff line change @@ -4,4 +4,4 @@ export type Region = {
44 name : string ,
55 abbreviation : string ,
66 countryId : number ,
7- }
7+ } ;
Original file line number Diff line number Diff line change 22export type Taxonomy = {
33 taxonomy : string ,
44 taxons : Array < Array < string >>
5- }
5+ } ;
You can’t perform that action at this time.
0 commit comments