mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
chore(client): fix type error due to React integration
This commit is contained in:
parent
399c7435ac
commit
3e213699e0
@ -31,13 +31,10 @@ import { StartupChecks } from "./startup_checks.js";
|
|||||||
import type { CreateNoteOpts } from "../services/note_create.js";
|
import type { CreateNoteOpts } from "../services/note_create.js";
|
||||||
import { ColumnComponent } from "tabulator-tables";
|
import { ColumnComponent } from "tabulator-tables";
|
||||||
import { ChooseNoteTypeCallback } from "../widgets/dialogs/note_type_chooser.jsx";
|
import { ChooseNoteTypeCallback } from "../widgets/dialogs/note_type_chooser.jsx";
|
||||||
|
import type RootContainer from "../widgets/containers/root_container.js";
|
||||||
|
|
||||||
interface Layout {
|
interface Layout {
|
||||||
getRootWidget: (appContext: AppContext) => RootWidget;
|
getRootWidget: (appContext: AppContext) => RootContainer;
|
||||||
}
|
|
||||||
|
|
||||||
interface RootWidget extends Component {
|
|
||||||
render: () => JQuery<HTMLElement>;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BeforeUploadListener extends Component {
|
export interface BeforeUploadListener extends Component {
|
||||||
@ -619,7 +616,7 @@ export class AppContext extends Component {
|
|||||||
component.triggerCommand(commandName, { $el: $(this) });
|
component.triggerCommand(commandName, { $el: $(this) });
|
||||||
});
|
});
|
||||||
|
|
||||||
this.child(rootWidget);
|
this.child(rootWidget as Component);
|
||||||
|
|
||||||
this.triggerEvent("initialRenderComplete", {});
|
this.triggerEvent("initialRenderComplete", {});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user