From ab81a140c986a6426caabcff2f0fb85e02f62ede Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 26 Jun 2022 19:17:22 -0500 Subject: [PATCH] Make all type-only imports explicit --- src/components/Context.vue | 2 +- src/components/Game.vue | 3 +- src/components/Layer.vue | 9 +++-- src/components/Modal.vue | 2 +- src/components/NaNScreen.vue | 6 ++- src/components/Nav.vue | 7 ++-- src/components/Options.vue | 2 +- src/components/Save.vue | 2 +- src/components/SavesManager.vue | 16 ++++---- src/components/TPS.vue | 3 +- src/components/fields/Select.vue | 2 +- src/components/fields/Slider.vue | 4 +- src/components/fields/Text.vue | 4 +- src/components/fields/Toggle.vue | 4 +- src/components/layout/Collapsible.vue | 5 ++- src/data/common.tsx | 47 ++++++++--------------- src/data/layers/prestige.tsx | 2 +- src/data/projEntry.tsx | 12 ++++-- src/features/achievements/Achievement.vue | 12 +++--- src/features/achievements/achievement.tsx | 9 +++-- src/features/bars/Bar.vue | 12 +++--- src/features/bars/bar.ts | 19 +++------ src/features/boards/Board.vue | 13 ++++--- src/features/boards/BoardLink.vue | 2 +- src/features/boards/BoardNode.vue | 10 +---- src/features/boards/board.ts | 15 ++++---- src/features/buyable.tsx | 29 ++++++-------- src/features/challenges/Challenge.vue | 22 ++++------- src/features/challenges/challenge.tsx | 31 ++++++--------- src/features/clickables/Clickable.vue | 19 +++------ src/features/clickables/clickable.ts | 21 +++------- src/features/conversion.ts | 26 ++++++------- src/features/feature.ts | 3 +- src/features/grids/Grid.vue | 2 +- src/features/grids/GridCell.vue | 6 ++- src/features/grids/grid.ts | 23 ++++------- src/features/hotkey.tsx | 11 +++--- src/features/infoboxes/Infobox.vue | 8 ++-- src/features/infoboxes/infobox.ts | 20 +++------- src/features/links/Link.vue | 4 +- src/features/links/Links.vue | 2 +- src/features/links/links.ts | 17 ++++---- src/features/milestones/Milestone.vue | 10 +++-- src/features/milestones/milestone.tsx | 21 +++------- src/features/particles/Particles.vue | 5 ++- src/features/particles/particles.tsx | 19 ++++----- src/features/reset.ts | 13 ++++--- src/features/resources/MainDisplay.vue | 11 +++--- src/features/resources/Resource.vue | 3 +- src/features/resources/resource.ts | 9 +++-- src/features/tabs/Tab.vue | 2 +- src/features/tabs/TabButton.vue | 3 +- src/features/tabs/TabFamily.vue | 20 +++------- src/features/tabs/tab.ts | 13 ++----- src/features/tabs/tabFamily.ts | 25 +++++------- src/features/tooltips/Tooltip.vue | 22 ++++------- src/features/tooltips/tooltip.ts | 25 +++++------- src/features/trees/Tree.vue | 9 +++-- src/features/trees/TreeNode.vue | 8 ++-- src/features/trees/tree.ts | 31 ++++++--------- src/features/upgrades/Upgrade.vue | 24 +++++------- src/features/upgrades/upgrade.ts | 24 ++++++------ src/game/events.ts | 14 ++++--- src/game/layers.tsx | 22 ++++++----- src/game/modifiers.tsx | 11 ++++-- src/game/persistence.ts | 13 ++++--- src/game/player.ts | 5 ++- src/game/settings.ts | 2 +- src/main.ts | 22 ++++++----- src/util/bignum.ts | 2 +- src/util/break_eternity.ts | 3 +- src/util/computed.ts | 5 ++- src/util/proxies.ts | 2 +- src/util/save.ts | 5 ++- src/util/vue.tsx | 21 +++------- 75 files changed, 393 insertions(+), 499 deletions(-) diff --git a/src/components/Context.vue b/src/components/Context.vue index 89c71ae..21ded12 100644 --- a/src/components/Context.vue +++ b/src/components/Context.vue @@ -8,9 +8,9 @@ import { RegisterNodeInjectionKey, UnregisterNodeInjectionKey, NodesInjectionKey, - FeatureNode, BoundsInjectionKey } from "game/layers"; +import type { FeatureNode } from "game/layers"; import { nextTick, onMounted, provide, ref } from "vue"; const emit = defineEmits<{ diff --git a/src/components/Game.vue b/src/components/Game.vue index 5a6521b..6f9bb66 100644 --- a/src/components/Game.vue +++ b/src/components/Game.vue @@ -24,7 +24,8 @@ - - diff --git a/src/features/resources/Resource.vue b/src/features/resources/Resource.vue index a0c14b7..928f2da 100644 --- a/src/features/resources/Resource.vue +++ b/src/features/resources/Resource.vue @@ -5,7 +5,8 @@