UNPKG

@inox-tools/content-utils

Version:

Utilities to work with content collections on an Astro project from an integration or library.

12 lines (8 loc) 638 B
/// <reference path="../virtual.d.ts" /> import { getEntry } from 'astro:content'; import { GitTrackingInfo } from '@it-astro:content/git'; declare function getEntryGitInfoInner(args: Parameters<typeof getEntry>): Promise<[string, GitTrackingInfo?]>; declare function getEntryGitInfo(...args: Parameters<typeof getEntry>): Promise<GitTrackingInfo | undefined>; declare function getLatestCommitDate(...args: Parameters<typeof getEntry>): Promise<Date>; declare function getOldestCommitDate(...args: Parameters<typeof getEntry>): Promise<Date>; export { getEntryGitInfo, getEntryGitInfoInner, getLatestCommitDate, getOldestCommitDate };