(file: TFile)
| 229 | } |
| 230 | |
| 231 | private getFrontmatterForFile(file: TFile): Record<string, unknown> | null { |
| 232 | const metadata = this.app.metadataCache.getFileCache(file); |
| 233 | return this.getFrontmatterFromCache(metadata); |
| 234 | } |
| 235 | |
| 236 | private getFrontmatterFromCache(cache: unknown): Record<string, unknown> | null { |
| 237 | if (!cache || typeof cache !== "object" || !("frontmatter" in cache)) { |
no test coverage detected