重构部分 block 逻辑,调整 js 执行器的 kv 流程

This commit is contained in:
dragon
2025-11-25 15:29:12 +08:00
parent 66005cc845
commit ad14614842
9 changed files with 34 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
// goja.d.ts
// global.d.ts
declare global {
@@ -25,6 +25,7 @@ declare global {
put(key: string, value: string): Promise<void>;
}
// @ts-ignore
const event: EventSystem;
// Request 相关类型
@@ -103,8 +104,8 @@ declare global {
}
interface KVSystem {
repo(group: string): KVOps;
org(group: string): KVOps;
repo(...group: string[]): KVOps;
org(...group: string[]): KVOps;
}
const kv: KVSystem;
@@ -118,6 +119,7 @@ declare global {
debug(...args: any[]): void;
}
// @ts-ignore
const console: Console;
}