Fix imports

This commit is contained in:
Adria Navarro 2024-11-26 11:21:51 +01:00
parent e44a68d356
commit 78725cff91
2 changed files with 9 additions and 1 deletions

8
packages/builder/src/index.d.ts vendored Normal file
View File

@ -0,0 +1,8 @@
declare module "api" {
const API: {
getPlugins: () => Promise<any>
createPlugin: (plugin: object) => Promise<any>
uploadPlugin: (plugin: FormData) => Promise<any>
deletePlugin: (id: string) => Promise<void>
}
}

View File

@ -1,7 +1,7 @@
import { writable } from "svelte/store"
import { PluginSource } from "constants/index"
const { API } = require("api")
import { API } from "api"
interface Plugin {
_id: string