ssg-output-lastmod.ts#
2 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.
2
symbols
2
functions
4
parameters
2
returns
Reference#
fnresolveGitLastmod(filePath: string, root?: string): number | undefinedGit last-commit time for filePath in milliseconds. Returns undefined when root…
Git last-commit time for filePath in milliseconds.
Returns undefined when root is missing, the path escapes root, Git has no matching history, or the NAPI/Git backend is unavailable.
Signature
export function resolveGitLastmod(filePath: string, root?: string): number | undefinedParameters
-
filePathstring -
rootstringoptional
Returns
number | undefined
fnresolveGitLastmods(filePaths: readonly string[], root?: string): Map<string, number>Batched git last-commit times, keyed by normalized absolute source path. Direct…
Batched git last-commit times, keyed by normalized absolute source path.
Directory paths resolve to the newest tracked descendant by Git pathspec semantics. Missing paths, unavailable Git/NAPI, and root escapes are omitted.
Signature
export function resolveGitLastmods(filePaths: readonly string[], root?: string): Map<string, number>Parameters
-
filePathsreadonly string[] -
rootstringoptional
Returns
Map<string, number>