清理无效依赖

This commit is contained in:
dragon
2025-11-21 16:14:06 +08:00
parent 309dd52dab
commit 01500f0101
5 changed files with 19 additions and 60 deletions

View File

@@ -1,5 +1,6 @@
// goja.d.ts
declare global {
// WebSocket 相关类型
interface WebSocketConnection {
@@ -29,7 +30,7 @@ declare global {
// Request 相关类型
interface RequestObject {
method: string;
url: URL;
url: string;
rawPath: string;
host: string;
remoteAddr: string;
@@ -93,17 +94,17 @@ declare global {
}
interface KVOps {
get(key: string): Promise<string | null>;
set(key: string, value: string): Promise<void>;
delete(key: string): Promise<boolean>;
putIfNotExists(key: string, value: string): Promise<boolean>;
compareAndSwap(key: string, oldValue: string, newValue: string): Promise<boolean>;
list(limit?: number, cursor?: string): Promise<KVListResult>;
get(key: string): string | null;
set(key: string, value: string): void;
delete(key: string): boolean;
putIfNotExists(key: string, value: string): boolean;
compareAndSwap(key: string, oldValue: string, newValue: string): boolean;
list(limit?: number, cursor?: string): KVListResult;
}
interface KVSystem {
repo(group: string): Promise<KVOps>;
org(group: string): Promise<KVOps>;
repo(group: string): KVOps;
org(group: string): KVOps;
}
const kv: KVSystem;