The Node.js® Website
at main 722 B view raw
1import type { Layouts } from './layouts'; 2 3// @TODO: Extra data from Frontmatter should not be a thing in the future 4// eslint-disable-next-line @typescript-eslint/no-explicit-any 5export interface LegacyFrontMatter extends Record<string, any> { 6 layout?: Layouts; 7 title?: string; 8 labels?: Record<string, string>; 9} 10 11// @TODO: Extra data from Frontmatter should not be a thing in the future 12export interface LegacyBlogFrontMatter extends LegacyFrontMatter { 13 author: string; 14 date: string; 15} 16 17// @TODO: Extra data from Frontmatter should not be a thing in the future 18export interface LegacyDownloadsFrontMatter extends LegacyFrontMatter { 19 downloads: Record<string, string>; 20 additional: Record<string, string>; 21}