fix typescript
Some checks failed
Node.js build / build (20.x) (push) Has been cancelled
Node.js build / build (22.x) (push) Has been cancelled

This commit is contained in:
2026-02-27 10:12:27 -05:00
parent 7022dadd83
commit 358ddca2f0
8 changed files with 386 additions and 452 deletions

View File

@@ -4,6 +4,7 @@ import {
EditorChange,
EditorPosition,
EditorTransaction,
MarkdownFileInfo,
MarkdownView,
} from 'obsidian'
import BindThemPlugin from './main'
@@ -69,7 +70,7 @@ export class ToggleHeading {
*/
public toggleHeading(
editor: Editor,
view: MarkdownView,
view: MarkdownView | MarkdownFileInfo,
heading: Heading
): void {
const selections = editor.listSelections()
@@ -111,7 +112,7 @@ export class ToggleHeading {
*/
public toggleHeadingWithStrip(
editor: Editor,
view: MarkdownView,
view: MarkdownView | MarkdownFileInfo,
level: number
): void {
const cursor = editor.getCursor()