Skip to content

Commit 7e204fb

Browse files
committed
semicolons
1 parent 7747209 commit 7e204fb

9 files changed

Lines changed: 16 additions & 17 deletions

File tree

flow-typed/api.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11

22
declare 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 {

types/api/album.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ export type Image = {
33
alt: string,
44
src: string,
55
title?: string,
6-
}
6+
};
77

88
export type Album = {
99
id: number,
1010
name: string,
1111
images: Array<Image>,
1212
archivedAt?: string,
13-
}
13+
};

types/api/attrs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ export type Currency = {|
55
currency: string,
66
value: number
77
}
8-
|}
8+
|};
99

1010
export type String = {|
1111
t: 'string',
1212
v: string
13-
|}
13+
|};

types/api/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ export type Context = {|
55
lang: string,
66
modality: string,
77
}
8-
|}
8+
|};

types/api/product.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ export type VariantValue = {
99
name: string,
1010
swatch: string,
1111
skuCodes: Array<string>,
12-
}
12+
};
1313

1414
export type Variant = {
1515
attributes: {
1616
name: String,
1717
},
1818
values: Array<VariantValue>,
19-
}
19+
};
2020

2121
export type Product = {
2222
id: number,
@@ -28,4 +28,4 @@ export type Product = {
2828
description: String,
2929
},
3030
variants: Array<Variant>,
31-
}
31+
};

types/api/sku.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
};

types/api/views/country.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ export type Country = {
1010
uses_postal_code: boolean,
1111
is_billable: boolean,
1212
is_shippable: boolean,
13-
}
13+
};

types/api/views/region.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ export type Region = {
44
name: string,
55
abbreviation: string,
66
countryId: number,
7-
}
7+
};

types/api/views/taxonomy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
export type Taxonomy = {
33
taxonomy: string,
44
taxons: Array<Array<string>>
5-
}
5+
};

0 commit comments

Comments
 (0)