Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit e204916

Browse files
committed
get tags api
1 parent 3874b17 commit e204916

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/typings/obsidian.d.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ import { Literal } from "obsidian-dataview";
44
declare module "obsidian" {
55
interface MetadataCache {
66
getLinkSuggestions: () => LinkSuggestion[];
7+
/**
8+
* Obtain the tags of all the vault with their count.
9+
*
10+
* WARNING! not exposed by Obsidian, may break in future.
11+
*/
12+
getTags(): Record<string, number>;
713
}
814

915
interface FileManager {
@@ -28,15 +34,6 @@ declare module "obsidian" {
2834
getConfig(param: string): any;
2935
}
3036

31-
interface MetadataCache {
32-
/**
33-
* Obtain the tags of all the vault with their count.
34-
*
35-
* WARNING! not exposed by Obsidian, may break in future.
36-
*/
37-
getTags(): Record<string, number>;
38-
}
39-
4037
interface WorkspaceLeaf {
4138
/**
4239
* Get the id of the leaf.

0 commit comments

Comments
 (0)