mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 07:28:12 +08:00
Prefix all type imports with the 'type' keyword where appropriate
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import type WasmBindgenPackage from "@/../wasm/pkg";
|
||||
import { panicProxy } from "@/utility-functions/panic-proxy";
|
||||
import { JsMessageType } from "@/wasm-communication/messages";
|
||||
import { createSubscriptionRouter, SubscriptionRouter } from "@/wasm-communication/subscription-router";
|
||||
import { type JsMessageType } from "@/wasm-communication/messages";
|
||||
import { createSubscriptionRouter, type SubscriptionRouter } from "@/wasm-communication/subscription-router";
|
||||
|
||||
export type WasmRawInstance = typeof import("@/../wasm/pkg");
|
||||
export type WasmRawInstance = typeof WasmBindgenPackage;
|
||||
export type WasmEditorInstance = InstanceType<WasmRawInstance["JsEditorHandle"]>;
|
||||
export type Editor = Readonly<ReturnType<typeof createEditor>>;
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
import { Transform, Type, plainToClass } from "class-transformer";
|
||||
|
||||
import type { IconName, IconSize, IconStyle } from "@/utility-functions/icons";
|
||||
import type { WasmEditorInstance, WasmRawInstance } from "@/wasm-communication/editor";
|
||||
import { type IconName, type IconSize, type IconStyle } from "@/utility-functions/icons";
|
||||
import { type WasmEditorInstance, type WasmRawInstance } from "@/wasm-communication/editor";
|
||||
|
||||
import type MenuList from "@/components/floating-menus/MenuList.vue";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { plainToInstance } from "class-transformer";
|
||||
|
||||
import type { WasmEditorInstance, WasmRawInstance } from "@/wasm-communication/editor";
|
||||
import { JsMessageType, messageMakers, JsMessage } from "@/wasm-communication/messages";
|
||||
import { type WasmEditorInstance, type WasmRawInstance } from "@/wasm-communication/editor";
|
||||
import { type JsMessageType, messageMakers, type JsMessage } from "@/wasm-communication/messages";
|
||||
|
||||
type JsMessageCallback<T extends JsMessage> = (messageData: T) => void;
|
||||
type JsMessageCallbackMap = {
|
||||
|
||||
Reference in New Issue
Block a user