Type Alias MetadataQueryFunction<T>

MetadataQueryFunction: (filesMetadata: FilesMetadata<T>) => FileQueryResult

A query over the metadata store: receive every file's frontmatter keyed by path and return the paths that match. Plain JS — Object.entries(...).filter(...) — no query language to learn.

Return bare paths, or records carrying extra fields alongside path (R3-276); either way the hook resolves each path to its frontmatter.

Type Parameters

Type declaration