[API bug] Editor.getScrollInfo is typed incorrectly

As long as I understand by reading app.js, Editor.getScrollInfo returns EditorScrollInfo.
However, in obsidian.d.ts, its return type is just { top: number, left: number }, which is a subset of EditorScrollInfo.

Since EditorScrollInfo is already marked as public, I guess this is unintentional mistyping.

1 Like