feat(types): improve type safety for history and plugin modules

This commit is contained in:
pandadev 2025-03-05 13:39:07 +01:00
parent 43c1428dbb
commit 6ea877a1be
No known key found for this signature in database
GPG key ID: C39629DACB8E762F
2 changed files with 10 additions and 2 deletions

View file

@ -1,5 +1,5 @@
import { invoke } from "@tauri-apps/api/core";
import type { HistoryItem } from "~/types/types";
import type { ContentType, HistoryItem } from "~/types/types";
export default defineNuxtPlugin(() => {
return {
@ -37,7 +37,7 @@ export default defineNuxtPlugin(() => {
async writeAndPaste(data: {
content: string;
contentType: string;
contentType: ContentType;
}): Promise<void> {
await invoke<void>("write_and_paste", data);
},