Skip to content

Commit 6472406

Browse files
committed
chore(gw2-ui): Use import type syntax
1 parent ac908d1 commit 6472406

File tree

87 files changed

+270
-257
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+270
-257
lines changed

gw2-ui/src/builder/attributes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import GW2ApiAttribute from '../gw2api/types/common/attribute';
2-
import ValueOf from './valueOf';
1+
import type GW2ApiAttribute from '../gw2api/types/common/attribute';
2+
import type ValueOf from './valueOf';
33

44
export type Attribute = ValueOf<Attributes>;
55

gw2-ui/src/builder/createItem.ts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
import { Attribute } from './attributes';
2-
import ITEM_ARMOR_WEIGHTS, { ItemArmorWeight } from './itemArmorWeights';
1+
import { type Attribute } from './attributes';
2+
import ITEM_ARMOR_WEIGHTS, { type ItemArmorWeight } from './itemArmorWeights';
33
import ITEM_CATEGORIES from './itemCategories';
4-
import ITEM_CATEGORY_NAMES, { ItemCategoryName } from './itemCategoryNames';
4+
import ITEM_CATEGORY_NAMES, {
5+
type ItemCategoryName,
6+
} from './itemCategoryNames';
57
import ITEM_MODIFIERS, {
6-
ItemModifier,
7-
ItemModifierAttribute,
8-
ItemModifiers,
8+
type ItemModifier,
9+
type ItemModifierAttribute,
10+
type ItemModifiers,
911
} from './itemModifiers';
10-
import ITEM_RARITIES, { ItemRarity } from './itemRarities';
11-
import ITEM_STAT_NAMES, { ItemStatName } from './itemStatNames';
12-
import ITEM_STATS, { ItemStat } from './itemStats';
13-
import ITEM_TYPE_NAMES, { ItemTypeName } from './itemTypeNames';
14-
import GW2ApiInfixUpgrade from '../gw2api/types/items/details/common/infixUpgrade';
12+
import ITEM_RARITIES, { type ItemRarity } from './itemRarities';
13+
import ITEM_STAT_NAMES, { type ItemStatName } from './itemStatNames';
14+
import ITEM_STATS, { type ItemStat } from './itemStats';
15+
import ITEM_TYPE_NAMES, { type ItemTypeName } from './itemTypeNames';
16+
import type GW2ApiInfixUpgrade from '../gw2api/types/items/details/common/infixUpgrade';
1517

1618
export interface GetModifiersProps {
1719
rarity: ItemRarity;

gw2-ui/src/builder/itemArmorWeights.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ValueOf from './valueOf';
1+
import type ValueOf from './valueOf';
22

33
export type ItemArmorWeight = ValueOf<ItemArmorWeights>;
44

gw2-ui/src/builder/itemCategories.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import ITEM_CATEGORY_NAMES, { ItemCategoryName } from './itemCategoryNames';
2-
import ITEM_TYPE_NAMES, { ItemTypeNames } from './itemTypeNames';
3-
import ValueOf from './valueOf';
1+
import ITEM_CATEGORY_NAMES, {
2+
type ItemCategoryName,
3+
} from './itemCategoryNames';
4+
import ITEM_TYPE_NAMES, { type ItemTypeNames } from './itemTypeNames';
5+
import type ValueOf from './valueOf';
46

57
export type ItemCategory = ValueOf<ItemTypeNames>[];
68

gw2-ui/src/builder/itemCategoryNames.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ValueOf from './valueOf';
1+
import type ValueOf from './valueOf';
22

33
export type ItemCategoryName = ValueOf<ItemCategoryNames>;
44

gw2-ui/src/builder/itemModifiers.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import ITEM_CATEGORIES, { ItemCategoryName } from './itemCategoryNames';
2-
import ITEM_TYPE_NAMES, { ItemTypeName } from './itemTypeNames';
3-
import ITEM_RARITIES, { ItemRarity } from './itemRarities';
4-
import ITEM_STAT_TYPES, { ItemStatType } from './itemStatTypes';
5-
import ITEM_ARMOR_WEIGHTS, { ItemArmorWeight } from './itemArmorWeights';
1+
import ITEM_CATEGORIES, { type ItemCategoryName } from './itemCategoryNames';
2+
import ITEM_TYPE_NAMES, { type ItemTypeName } from './itemTypeNames';
3+
import ITEM_RARITIES, { type ItemRarity } from './itemRarities';
4+
import ITEM_STAT_TYPES, { type ItemStatType } from './itemStatTypes';
5+
import ITEM_ARMOR_WEIGHTS, { type ItemArmorWeight } from './itemArmorWeights';
66

77
export type ItemModifier = number;
88

gw2-ui/src/builder/itemRarities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ValueOf from './valueOf';
1+
import type ValueOf from './valueOf';
22

33
export type ItemRarity = ValueOf<ItemRarities>;
44

gw2-ui/src/builder/itemStatNames.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ValueOf from './valueOf';
1+
import type ValueOf from './valueOf';
22

33
export type ItemStatName = ValueOf<ItemStatNames>;
44

gw2-ui/src/builder/itemStatTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ValueOf from './valueOf';
1+
import type ValueOf from './valueOf';
22

33
export type ItemStatType = ValueOf<ItemStatTypes>;
44

gw2-ui/src/builder/itemStats.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import ITEM_STAT_NAMES, { ItemStatName } from './itemStatNames';
2-
import ITEM_STAT_TYPES, { ItemStatType } from './itemStatTypes';
3-
import ATTRIBUTES, { Attribute } from './attributes';
1+
import ITEM_STAT_NAMES, { type ItemStatName } from './itemStatNames';
2+
import ITEM_STAT_TYPES, { type ItemStatType } from './itemStatTypes';
3+
import ATTRIBUTES, { type Attribute } from './attributes';
44

55
export type RegularItemBonuses = [[Attribute], [Attribute, Attribute]];
66
export type MixedItemBonuses = [[Attribute, Attribute], [Attribute, Attribute]];

0 commit comments

Comments
 (0)