Переглянути джерело

ref: prettify PluginItem type

Sv443 3 місяців тому
батько
коміт
06cc3fba41
1 змінених файлів з 4 додано та 3 видалено
  1. 4 3
      src/types.ts

+ 4 - 3
src/types.ts

@@ -1,4 +1,4 @@
-import type { NanoEmitter } from "@sv443-network/userutils";
+import type { NanoEmitter, Prettify } from "@sv443-network/userutils";
 import type * as consts from "./constants.js";
 import type { scriptInfo } from "./constants.js";
 import type { addSelectorListener } from "./observers.js";
@@ -256,11 +256,12 @@ export type PluginEventMap =
   & InterfaceEventsMap;
 
 /** A plugin in either the queue or registered map */
-export type PluginItem = 
+export type PluginItem = Prettify<
   & {
     def: PluginDef;
   }
-  & Pick<PluginRegisterResult, "events">;
+  & Pick<PluginRegisterResult, "events">
+>;
 
 //#region plugin interface