Refactor
This commit is contained in:
parent
7d4b5eb33a
commit
4e2a7501f4
2 changed files with 3 additions and 3 deletions
|
|
@ -100,4 +100,4 @@ See https://github.com/obsidianmd/obsidian-api
|
|||
|
||||
|
||||
npm install -g openapi-typescript
|
||||
openapi-typescript http://localhost:3000/api.json --output ./types.ts
|
||||
openapi-typescript http://localhost:3000/api.json --output plugin/src/services/types.ts
|
||||
|
|
@ -10,7 +10,7 @@ import {
|
|||
WorkspaceLeaf,
|
||||
} from "obsidian";
|
||||
|
||||
import * as plugin from "../../backend/sync_lib/pkg/sync_lib.js";
|
||||
import * as lib from "../../backend/sync_lib/pkg/sync_lib.js";
|
||||
import * as wasmBin from "../../backend/sync_lib/pkg/sync_lib_bg.wasm";
|
||||
import { SyncSettingsTab } from "./views/settings-tab.js";
|
||||
import { SyncView } from "./views/sync-view.js";
|
||||
|
|
@ -24,7 +24,7 @@ export default class SyncPlugin extends Plugin {
|
|||
async onload() {
|
||||
Logger.getInstance().info('Starting plugin "Sample Plugin"');
|
||||
|
||||
await plugin.default(Promise.resolve((wasmBin as any).default));
|
||||
await lib.default(Promise.resolve((wasmBin as any).default));
|
||||
|
||||
this.addCommand({
|
||||
id: "sample-editor-command",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue