Skip to content

Commit ef12bb7

Browse files
committed
add definition of obsidian internal function openWithDefaultApp
1 parent 5e2809d commit ef12bb7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jsEngine/obsidian-ex.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ declare module 'obsidian' {
88
plugins: Record<string, Plugin>;
99
getPlugin: (plugin: string) => Plugin;
1010
};
11+
12+
/**
13+
* Open a file or folder with the systems default app for it.
14+
* @param path a normalized path to open
15+
*/
16+
openWithDefaultApp(path: string): void;
1117
}
1218

1319
interface MenuItem {

0 commit comments

Comments
 (0)