mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-10-19 07:42:31 +00:00
Change type assertion
This commit is contained in:
@@ -564,7 +564,7 @@ export class ConfigSync extends LiveSyncCommands {
|
|||||||
...data,
|
...data,
|
||||||
documentPath: this.getPath(wx),
|
documentPath: this.getPath(wx),
|
||||||
files: xFiles,
|
files: xFiles,
|
||||||
} as PluginDataExDisplay;
|
} satisfies PluginDataExDisplay;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
Submodule src/lib updated: 68f1e26b3e...080bfa2e14
@@ -111,7 +111,7 @@ export class ModuleDev extends AbstractObsidianModule {
|
|||||||
const filename = "test-create-conflict.md";
|
const filename = "test-create-conflict.md";
|
||||||
const content = `# Test create conflict\n\n`;
|
const content = `# Test create conflict\n\n`;
|
||||||
const w = await this.core.databaseFileAccess.store({
|
const w = await this.core.databaseFileAccess.store({
|
||||||
name: filename as FilePathWithPrefix,
|
name: filename,
|
||||||
path: filename as FilePathWithPrefix,
|
path: filename as FilePathWithPrefix,
|
||||||
body: new Blob([content], { type: "text/markdown" }),
|
body: new Blob([content], { type: "text/markdown" }),
|
||||||
stat: {
|
stat: {
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ export function panePatches(this: ObsidianLiveSyncSettingTab, paneEl: HTMLElemen
|
|||||||
xxhash64: "xxhash64 (Fastest)",
|
xxhash64: "xxhash64 (Fastest)",
|
||||||
"mixed-purejs": "PureJS fallback (Fast, W/O WebAssembly)",
|
"mixed-purejs": "PureJS fallback (Fast, W/O WebAssembly)",
|
||||||
sha1: "Older fallback (Slow, W/O WebAssembly)",
|
sha1: "Older fallback (Slow, W/O WebAssembly)",
|
||||||
} as Record<HashAlgorithm, string>,
|
} satisfies Record<HashAlgorithm, string>,
|
||||||
});
|
});
|
||||||
this.addOnSaved("hashAlg", async () => {
|
this.addOnSaved("hashAlg", async () => {
|
||||||
await this.core.localDatabase._prepareHashFunctions();
|
await this.core.localDatabase._prepareHashFunctions();
|
||||||
|
|||||||
Reference in New Issue
Block a user