Prefix all type imports with the 'type' keyword where appropriate

This commit is contained in:
Keavon Chambers
2022-08-26 00:10:41 -07:00
parent 7848391f6e
commit 33e790dc86
63 changed files with 188 additions and 179 deletions
@@ -33,9 +33,9 @@
</style>
<script lang="ts">
import { defineComponent, PropType } from "vue";
import { defineComponent, type PropType } from "vue";
import { IconName, IconStyle, icons, iconComponents } from "@/utility-functions/icons";
import { type IconName, type IconStyle, ICONS, ICON_COMPONENTS } from "@/utility-functions/icons";
import LayoutRow from "@/components/layout/LayoutRow.vue";
@@ -46,7 +46,7 @@ export default defineComponent({
},
computed: {
iconSizeClass(): string {
return `size-${icons[this.icon].size}`;
return `size-${ICONS[this.icon].size}`;
},
iconStyleClass(): string {
if (!this.iconStyle || this.iconStyle === "Normal") return "";
@@ -55,7 +55,7 @@ export default defineComponent({
},
components: {
LayoutRow,
...iconComponents,
...ICON_COMPONENTS,
},
});
</script>
@@ -73,9 +73,9 @@
</style>
<script lang="ts">
import { defineComponent, PropType } from "vue";
import { defineComponent, type PropType } from "vue";
import { SeparatorDirection, SeparatorType } from "@/wasm-communication/messages";
import { type SeparatorDirection, type SeparatorType } from "@/wasm-communication/messages";
export default defineComponent({
props: {
@@ -30,7 +30,7 @@
</style>
<script lang="ts">
import { defineComponent, PropType } from "vue";
import { defineComponent, type PropType } from "vue";
export default defineComponent({
props: {
@@ -130,11 +130,11 @@
</style>
<script lang="ts">
import { defineComponent, PropType } from "vue";
import { defineComponent, type PropType } from "vue";
import { IconName } from "@/utility-functions/icons";
import { type IconName } from "@/utility-functions/icons";
import { platformIsMac } from "@/utility-functions/platform";
import { KeyRaw, KeysGroup, Key, MouseMotion } from "@/wasm-communication/messages";
import { type KeyRaw, type KeysGroup, type Key, type MouseMotion } from "@/wasm-communication/messages";
import LayoutRow from "@/components/layout/LayoutRow.vue";
import IconLabel from "@/components/widgets/labels/IconLabel.vue";