@@ -66,7 +66,7 @@ export class QueryAPI {
6666 . filter ( x => x !== undefined ) ;
6767 }
6868
69- public outgoingLinks ( file : TFile ) : { file : TFile ; cache : CachedMetadata | undefined ; tags : string [ ] ; frontmatterTags : string [ ] } [ ] {
69+ public outgoingLinks ( file : TFile ) : { file : TFile ; metadata : CachedMetadata | undefined ; tags : string [ ] ; frontmatterTags : string [ ] } [ ] {
7070 validateAPIArgs ( z . object ( { file : this . apiInstance . validators . tFile } ) , { file } ) ;
7171
7272 const metadata = this . apiInstance . app . metadataCache . getFileCache ( file ) ;
@@ -82,14 +82,14 @@ export class QueryAPI {
8282 const metadata = this . apiInstance . app . metadataCache . getFileCache ( file ) ;
8383 return {
8484 file : file ,
85- cache : metadata ?? undefined ,
85+ metadata : metadata ?? undefined ,
8686 tags : metadata ? ( getAllTags ( metadata ) ?? [ ] ) : [ ] ,
8787 frontmatterTags : ( metadata ?. frontmatter ?. tags as string [ ] | undefined ) ?? [ ] ,
8888 } ;
8989 } ) ;
9090 }
9191
92- public incomingLinks ( file : TFile ) : { file : TFile ; cache : CachedMetadata | undefined ; tags : string [ ] ; frontmatterTags : string [ ] } [ ] {
92+ public incomingLinks ( file : TFile ) : { file : TFile ; metadata : CachedMetadata | undefined ; tags : string [ ] ; frontmatterTags : string [ ] } [ ] {
9393 validateAPIArgs ( z . object ( { file : this . apiInstance . validators . tFile } ) , { file } ) ;
9494
9595 const files = this . apiInstance . app . vault . getMarkdownFiles ( ) ;
@@ -111,7 +111,7 @@ export class QueryAPI {
111111 ) {
112112 return {
113113 file : f ,
114- cache : metadata ,
114+ metadata : metadata ,
115115 tags : getAllTags ( metadata ) ?? [ ] ,
116116 frontmatterTags : ( metadata ?. frontmatter ?. tags as string [ ] | undefined ) ?? [ ] ,
117117 } ;
0 commit comments