MCPcopy Create free account
hub / github.com/UNLINEARITY/Obsidian-CodeSpace / CodeSpaceViewInterface

Interface CodeSpaceViewInterface

src/outline_view.ts:172–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170
171 // Define a minimal interface to satisfy TypeScript
172 interface CodeSpaceViewInterface {
173 file: TFile | null;
174 editorView?: {
175 state: {
176 doc: {
177 line(lineNum: number): { from: number; to: number };
178 };
179 };
180 dispatch(transaction: {
181 selection: { anchor: number; head: number };
182 effects?: unknown[];
183 scrollIntoView?: boolean;
184 }): void;
185 };
186 }
187
188 let targetLeaf = leaves.find(leaf => {
189 const view = leaf.view as unknown as CodeSpaceViewInterface;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected