fix: dts TS类型修复
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user