types: correct some types [skip ci]

This commit is contained in:
pylixonly 2024-11-09 21:51:39 +08:00
parent 514665fecd
commit 1bddd2824f

View file

@ -1,5 +1,5 @@
import { createStorage } from "@core/vendetta/storage";
import { Author } from "@lib/addons/types";
import { createStorage } from "@lib/api/storage";
import { Logger } from "@lib/utils/logger";
export interface PluginRepo {
@ -47,7 +47,7 @@ export interface PluginInstanceInternal extends PluginInstance {
export interface BunnyPluginProperty {
readonly manifest: BunnyPluginManifestInternal;
readonly logger: Logger;
createStorage<T>(): ReturnType<typeof createStorage<T>>;
createStorage<T extends object>(): ReturnType<typeof createStorage<T>>;
}
export type BunnyPluginObject = typeof window.bunny & {