obsidian warnings fix

This commit is contained in:
poanse 2026-07-13 09:29:52 +03:00
parent 3adda62610
commit a3ed77cd9c
3 changed files with 3 additions and 5 deletions

View file

@ -16,7 +16,7 @@ export class DraggingManager {
public onPointerDown = (e: PointerEvent) => {
console.debug("DraggingManager pointerDown");
this.mouseDown = e.button as MouseDown;
this.mouseDown = e.button;
if (this.mouseCodes.includes(this.mouseDown)) {
this.startX = e.clientX;
this.startY = e.clientY;

View file

@ -9,9 +9,7 @@ export class FolderSuggest extends AbstractInputSuggest<TFolder> {
textInputEl: HTMLInputElement;
constructor(app: App, textInputEl: HTMLInputElement) {
// Cast the textarea to HTMLInputElement to satisfy TypeScript.
// This is a dirty hack, but runtime behavior is compatible
super(app, textInputEl as unknown as HTMLInputElement);
super(app, textInputEl);
this.textInputEl = textInputEl;
}

View file

@ -55,7 +55,7 @@ export const classStringFromStatusCode = (code: StatusCode) => {
};
export const toIconCode = (s: StatusCode) => {
return (s + IconCode.STATUS_DRAFT) as IconCode;
return s + IconCode.STATUS_DRAFT;
};
export const toStatusCode = (s: IconCode) => {