UNPKG

astro-accelerator-utils

Version:
29 lines (28 loc) 955 B
/** * @typedef { import("../../types/AuthorList").AuthorList } AuthorList * @typedef { import("../../types/Astro").MarkdownInstance } MarkdownInstance * @typedef { import("../../types/Frontmatter").Frontmatter } Frontmatter */ export class Authors { /** * Constructor * @param {Posts} posts */ constructor(posts: Posts); posts: Posts; /** * Gets a list of authors, and exposes main author and contributors * @param {Frontmatter} frontmatter * @returns {AuthorList} */ forPost(frontmatter: Frontmatter): AuthorList; /** * Get a single author by id/slug * @param {string} slug * @returns {MarkdownInstance} */ info(slug: string): MarkdownInstance; } export type AuthorList = import("../../types/AuthorList").AuthorList; export type MarkdownInstance = import("../../types/Astro").MarkdownInstance; export type Frontmatter = import("../../types/Frontmatter").Frontmatter;