fix: dts TS类型修复
CI / test (18.x) (push) Successful in 10m0s
CI / test (20.x) (push) Successful in 9m58s
CI / test (22.x) (push) Successful in 9m56s
CI / test (24.x) (push) Successful in 9m54s

This commit is contained in:
thzxx
2026-07-27 22:06:45 +08:00
parent ce02cbefa0
commit d799e968ab
9 changed files with 708 additions and 109 deletions
+1 -2
View File
@@ -27,9 +27,8 @@ export class FileManager implements PageIO {
/** 初始化:从存储中读取元数据 */
async init(dbName: string): Promise<void> {
this.dbName = dbName;
// 读取 nextPageId
const meta = await this.backend.read('__aria_meta');
if (meta) {
if (meta && meta instanceof ArrayBuffer && meta.byteLength >= 4) {
const view = new DataView(meta);
this.nextPageId = view.getUint32(0, false);
} else {