mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
chore(monorepo/client): CKEditor-related type errors
This commit is contained in:
parent
b109e7db77
commit
c4b7f6fff8
15
apps/client/src/types.d.ts
vendored
15
apps/client/src/types.d.ts
vendored
@ -137,10 +137,10 @@ declare global {
|
||||
}
|
||||
|
||||
interface CKEditorInstance {
|
||||
|
||||
create(elementOrData: any, finalConfig: any): TextEditor;
|
||||
}
|
||||
|
||||
interface CKWatchdog {
|
||||
class CKWatchdog {
|
||||
constructor(editorClass: CKEditorInstance, opts: {
|
||||
minimumNonErrorTimePeriod: number;
|
||||
crashNumberLimit: number,
|
||||
@ -175,7 +175,7 @@ declare global {
|
||||
var CKEditor: {
|
||||
BalloonEditor: CKEditorInstance;
|
||||
DecoupledEditor: CKEditorInstance;
|
||||
EditorWatchdog: CKWatchdog;
|
||||
EditorWatchdog: typeof CKWatchdog;
|
||||
};
|
||||
|
||||
var CKEditorInspector: {
|
||||
@ -345,6 +345,7 @@ declare global {
|
||||
commands: {
|
||||
get(name: string): {
|
||||
value: unknown;
|
||||
on(event: string, callback: () => void): void;
|
||||
};
|
||||
}
|
||||
model: {
|
||||
@ -407,6 +408,14 @@ declare global {
|
||||
};
|
||||
toModel(viewFeragment: any);
|
||||
},
|
||||
ui: {
|
||||
view: {
|
||||
toolbar: {
|
||||
items: any[];
|
||||
element: HTMLElement;
|
||||
}
|
||||
}
|
||||
}
|
||||
conversion: {
|
||||
for(filter: string): {
|
||||
markerToHighlight(data: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user